Skip to content

Commit

Permalink
added recommended changes by code rabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal committed Nov 11, 2024
1 parent e572cf4 commit cfdeff5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM node:20.10.0 AS build

WORKDIR /usr/src/app

COPY . .

RUN npm install -g typescript
COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 4321
Expand Down
14 changes: 12 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ services:
dockerfile: Dockerfile
environment:
- REACT_APP_TALAWA_URL=${REACT_APP_TALAWA_URL}
# volumes:
# - .:/usr/src/app
ports:
- 4321:4321
user: node
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:4321']
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 1G

0 comments on commit cfdeff5

Please sign in to comment.