fix: get backend docker working

This commit is contained in:
Rotimi Best
2024-09-23 01:37:57 +01:00
parent 877b514a7b
commit 0349e8c531
3 changed files with 7 additions and 12 deletions
+1 -8
View File
@@ -1,4 +1,4 @@
FROM node:18-alpine AS builder
FROM node:18-alpine
WORKDIR /app
@@ -30,13 +30,6 @@ RUN pnpm i
RUN pnpm build
RUN pnpm prune --production
FROM node:18-alpine
WORKDIR /app/apps/dashboard
COPY --from=builder /app/apps/dashboard/build build/
COPY --from=builder /app/apps/dashboard/node_modules node_modules/
COPY package.json .
EXPOSE 5000
ENV NODE_ENV=production