1
0
Fork 0

Fixed dockerfile

This commit is contained in:
Techognito 2025-07-27 12:44:42 +02:00
parent ca84807814
commit 5469a93a57

View file

@ -29,10 +29,11 @@ RUN bun run build
# copy production dependencies and source code into final image # copy production dependencies and source code into final image
FROM base AS release FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules COPY --from=install /temp/prod/node_modules node_modules
COPY --from=prerelease /usr/src/app/src/index.html . COPY --from=prerelease /usr/src/app/dist/ .
COPY --from=prerelease /usr/src/app/src/index.tsx .
COPY --from=prerelease /usr/src/app/package.json . COPY --from=prerelease /usr/src/app/package.json .
# run the app # run the app
USER bun USER bun
EXPOSE 3000/tcp EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "./index.html" ] ENTRYPOINT [ "bun", "run", "./index.tsx" ]