Skip to content

Commit

Permalink
chore: fix dockerfile make issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AureliusIvan committed Jun 7, 2024
1 parent cdf86bf commit 82d62a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM node:lts-alpine3.20
RUN passwd -d root
RUN npm install -g pnpm

RUN apt-get update && apt-get install -y make
#add make file
RUN apk add --no-cache make

USER root
WORKDIR /app
24 changes: 8 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
services:
app:
container_name: app-${PROJECT_NAME}
build:
context: .
dockerfile: Dockerfile
working_dir: /app
privileged: true
user: root
tty: true
container_name: app-${PROJECT_NAME}
ports:
- "3000:3000"
- "4000:4000"
- 3000:3000
volumes:
- .:/app
- ./volumes/logs:/app/logs
Expand All @@ -18,29 +18,21 @@ services:
networks:
- cmsnetwork
depends_on:
- redis
- mongo

redis:
image: redis:alpine
container_name: redis-${PROJECT_NAME}
ports:
- "6379:6379"
networks:
- cmsnetwork
volumes:
- ./volumes/redis:/data

mongo:
image: mongo:latest
container_name: mongo-${PROJECT_NAME}
image: mongo:5.0-focal
tty: true
ports:
- "27017:27017"
- 27017:27017
networks:
- cmsnetwork
volumes:
- ./volumes/mongo:/data/db
command:
- sleep
- infinity

networks:
cmsnetwork:
Expand Down

0 comments on commit 82d62a2

Please sign in to comment.