chore: fix Dockerfile
This commit is contained in:
parent
49ac4f6ca4
commit
400dc7ec2a
@ -13,11 +13,10 @@ FROM node:16.17.0 AS runner
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
||||||
COPY --from=builder /usr/src/app/start.sh ./docker-start.sh
|
COPY --from=builder /usr/src/app/docker-start.sh ./docker-start.sh
|
||||||
COPY --from=builder /usr/src/app/package.json ./package.json
|
COPY --from=builder /usr/src/app/package.json ./package.json
|
||||||
COPY --from=builder /usr/src/app/email ./email
|
COPY --from=builder /usr/src/app/email ./email
|
||||||
COPY --from=builder /usr/src/app/build ./build
|
COPY --from=builder /usr/src/app/build ./build
|
||||||
COPY --from=builder /usr/src/app/prisma ./prisma
|
COPY --from=builder /usr/src/app/prisma ./prisma
|
||||||
COPY --from=builder /usr/src/app/uploads ./uploads
|
|
||||||
USER node
|
USER node
|
||||||
CMD ["./docker-start.sh"]
|
CMD ["./docker-start.sh"]
|
||||||
|
Reference in New Issue
Block a user