fix: copy server directory instead of single server.js file in Dockerfile
This commit is contained in:
parent
2b5aecced5
commit
dfeb511c1b
1 changed files with 2 additions and 1 deletions
|
|
@ -15,11 +15,12 @@ WORKDIR /app
|
|||
RUN npm run build
|
||||
|
||||
FROM node:20-alpine
|
||||
COPY ./package.json package-lock.json server.js /app/
|
||||
COPY ./package.json package-lock.json /app/
|
||||
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
|
||||
COPY --from=build-env /app/build /app/build
|
||||
COPY ./drizzle /app/drizzle
|
||||
COPY ./drizzle.config.ts /app/drizzle.config.ts
|
||||
COPY ./database /app/database
|
||||
COPY ./server /app/server
|
||||
WORKDIR /app
|
||||
CMD ["npm", "run", "start:production"]
|
||||
Loading…
Add table
Reference in a new issue