Update Dockerfile
This commit is contained in:
parent
2a90e90bca
commit
070d70e3ec
1 changed files with 4 additions and 1 deletions
|
|
@ -30,6 +30,9 @@ COPY website/. ./
|
|||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# List contents to debug build output
|
||||
RUN ls -la
|
||||
|
||||
# Remove dev dependencies
|
||||
RUN npm prune --omit=dev
|
||||
|
||||
|
|
@ -56,7 +59,7 @@ RUN bun build src/main.ts --outdir dist --target bun
|
|||
FROM base-node AS production-main
|
||||
|
||||
# Copy built application from build stage
|
||||
COPY --from=build-main --chown=node:node /app/build ./build
|
||||
COPY --from=build-main --chown=node:node /app/dist ./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
|
||||
|
||||
|
|
|
|||
Reference in a new issue