File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ # Dockerfile for Local Development
12# FROM node:18-alpine AS base
23
34# # Create app directory
4142
4243# CMD ["node", "dist/main.js"]
4344
44- # FOR DEPLOYMENT!!
45+ # Dockerfile for Production
4546
4647FROM node:18-alpine AS base
4748
@@ -52,7 +53,7 @@ WORKDIR /app
5253RUN npm install -g pnpm
5354
5455# Copy package.json first
55- COPY package*.json ./
56+ COPY apps/api/ package*.json ./
5657
5758# Install dependencies
5859RUN npm install --legacy-peer-deps
@@ -61,9 +62,9 @@ RUN npm install --legacy-peer-deps
6162RUN 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
6970RUN npm run build
You can’t perform that action at this time.
0 commit comments