Skip to content

Commit c17bf82

Browse files
fixed dockerfile
1 parent afb523c commit c17bf82

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/server/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ RUN pnpm --filter server build
3030
FROM base AS runner
3131
WORKDIR /app
3232

33-
# Copy built files
34-
COPY --from=builder /app/packages/server/dist ./dist
35-
COPY --from=builder /app/packages/server/package.json ./package.json
36-
COPY --from=builder /app/node_modules ./node_modules
37-
COPY --from=builder /app/packages ./packages
33+
# Copy the ENTIRE workspace structure
34+
COPY --from=builder /app ./
3835

3936
ENV NODE_ENV=production
4037
ENV PORT=4000
4138

4239
EXPOSE 4000
4340

41+
WORKDIR /app/packages/server
4442
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)