Fixed dockerfile
This commit is contained in:
parent
ca84807814
commit
5469a93a57
1 changed files with 3 additions and 2 deletions
|
|
@ -29,10 +29,11 @@ RUN bun run build
|
|||
# copy production dependencies and source code into final image
|
||||
FROM base AS release
|
||||
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 .
|
||||
|
||||
# run the app
|
||||
USER bun
|
||||
EXPOSE 3000/tcp
|
||||
ENTRYPOINT [ "bun", "run", "./index.html" ]
|
||||
ENTRYPOINT [ "bun", "run", "./index.tsx" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue