Skip to content

Commit 7b9cd77

Browse files
adding docker file data for deployment.
1 parent f38092e commit 7b9cd77

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docker/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Dockerfile for Local Development
12
# FROM node:18-alpine AS base
23

34
# # Create app directory
@@ -41,7 +42,7 @@
4142

4243
# CMD ["node", "dist/main.js"]
4344

44-
# FOR DEPLOYMENT!!
45+
# Dockerfile for Production
4546

4647
FROM node:18-alpine AS base
4748

@@ -52,7 +53,7 @@ WORKDIR /app
5253
RUN npm install -g pnpm
5354

5455
# Copy package.json first
55-
COPY package*.json ./
56+
COPY apps/api/package*.json ./
5657

5758
# Install dependencies
5859
RUN npm install --legacy-peer-deps
@@ -61,9 +62,9 @@ RUN npm install --legacy-peer-deps
6162
RUN npm install -g @nestjs/cli@$(node -p "require('./package.json').devDependencies['@nestjs/cli'].replace('^', '')")
6263

6364
# Copy source code
64-
COPY src ./src
65-
COPY tsconfig*.json ./
66-
COPY nest-cli.json ./
65+
COPY apps/api/src ./src
66+
COPY apps/api/tsconfig*.json ./
67+
COPY apps/api/nest-cli.json ./
6768

6869
# Build the application
6970
RUN npm run build

0 commit comments

Comments
 (0)