Update Dockerfile
This commit is contained in:
parent
a4501c64f6
commit
a957c85ce1
1 changed files with 1 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ RUN bun build src/main.ts --outdir dist --target bun
|
|||
|
||||
FROM base-node AS production-main
|
||||
|
||||
COPY --from=build-main --chown=node:node /app/.svelte-kit/output ./
|
||||
COPY --from=build-main --chown=node:node /app/.svelte-kit/output ./build
|
||||
COPY --from=build-main --chown=node:node /app/node_modules ./node_modules
|
||||
COPY --from=build-main --chown=node:node /app/package.json ./package.json
|
||||
|
||||
|
|
@ -88,6 +88,5 @@ ENV PATH="/root/.bun/bin:${PATH}"
|
|||
COPY --from=build-websocket /websocket/dist ./dist
|
||||
COPY --from=build-websocket /websocket/package.json ./package.json
|
||||
|
||||
USER node
|
||||
EXPOSE 8080
|
||||
CMD ["bun", "run", "dist/main.js"]
|
||||
Reference in a new issue