Skip to content

Commit

Permalink
changed according to suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
PurnenduMIshra129th committed Jan 13, 2025
1 parent 4cbba55 commit de65d05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build stage
FROM node:22-alpine AS builder
FROM node:20.10.0 AS builder

WORKDIR /usr/src/app

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build stage
FROM node:22-alpine AS builder
FROM node:20.10.0 AS builder

WORKDIR /usr/src/app

Expand All @@ -16,7 +16,7 @@ RUN npm install
COPY . .

# Set execute permissions for dependency analysis scripts.(note:use it once the #2848 pr merged in talawa-api develop branch.)
# RUN chmod +x ./deps/move-from-diff.sh ./deps/analyze-dependencies.sh
# RUN chmod +x ./scripts/deps/move-from-diff.sh ./scripts/deps/analyze-dependencies.sh

# Build the application
RUN npm run build
Expand All @@ -25,7 +25,7 @@ RUN npm run build
# RUN npm run move-and-prune

# Stage 2: Final stage
FROM node:22-alpine
FROM node:alpine

WORKDIR /usr/src/app

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: "3.8"
services:
mongo:
# No light weight image is available for mongo
Expand All @@ -15,7 +16,7 @@ services:
memory: 512M
cpus: '0.5'
ports:
- "127.0.0.1:27017:27017"
- "27017:27017"
volumes:
- mongo_data:/data/db
- ./init-mongo.sh:/init-mongo.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.prod.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: "3.8"
services:
mongo:
# No light weight image is available for mongo
Expand All @@ -15,7 +16,7 @@ services:
memory: 512M
cpus: '0.5'
ports:
- "127.0.0.1:27017:27017"
- "27017:27017"
volumes:
- mongo_data:/data/db
- ./init-mongo.sh:/init-mongo.sh
Expand Down

0 comments on commit de65d05

Please sign in to comment.