Skip to content

Commit 56239b3

Browse files
adding docker file data for deployment.
1 parent 938e5b9 commit 56239b3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444

4545
# Dockerfile for Production
4646

47+
# Dockerfile for Production
48+
4749
FROM node:18-alpine AS base
4850

4951
# Create app directory
@@ -53,9 +55,8 @@ WORKDIR /app
5355
RUN npm install -g pnpm
5456

5557
# Copy root package.json and the entire apps directory
56-
COPY ../package*.json ./
57-
COPY ../apps ./apps
58-
58+
COPY package*.json ./
59+
COPY apps ./apps
5960

6061
# Set working directory to the API folder
6162
WORKDIR /app/apps/api
@@ -69,6 +70,7 @@ RUN npm install -g @nestjs/cli@$(node -p "require('./package.json').devDependenc
6970
# Build the application
7071
RUN npm run build
7172

73+
7274
# Production stage
7375
FROM node:18-alpine AS production
7476

0 commit comments

Comments
 (0)