We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 938e5b9 commit 56239b3Copy full SHA for 56239b3
docker/Dockerfile
@@ -44,6 +44,8 @@
44
45
# Dockerfile for Production
46
47
+# Dockerfile for Production
48
+
49
FROM node:18-alpine AS base
50
51
# Create app directory
@@ -53,9 +55,8 @@ WORKDIR /app
53
55
RUN npm install -g pnpm
54
56
57
# Copy root package.json and the entire apps directory
-COPY ../package*.json ./
-COPY ../apps ./apps
58
-
+COPY package*.json ./
59
+COPY apps ./apps
60
61
# Set working directory to the API folder
62
WORKDIR /app/apps/api
@@ -69,6 +70,7 @@ RUN npm install -g @nestjs/cli@$(node -p "require('./package.json').devDependenc
69
70
# Build the application
71
RUN npm run build
72
73
74
# Production stage
75
FROM node:18-alpine AS production
76
0 commit comments