changed to docker image to node:alpine

This commit is contained in:
Lukian LEIZOUR 2024-12-25 22:28:50 +01:00
parent 7b84ceec5d
commit 068c11b695
2 changed files with 5 additions and 10 deletions

View file

@ -1,9 +1,5 @@
FROM node:18
FROM node:alpine
WORKDIR /app
COPY . /app
COPY . .
RUN npm i
CMD npm run start
CMD ["npm", "run", "start"]

View file

@ -2,10 +2,10 @@ services:
joclud_api:
build:
context: .
dockerfile: DOCKERFILE
dockerfile: Dockerfile
network: host
restart: always
image: joclud_api
container_name: joclud_api
expose:
- 80
networks:
@ -17,7 +17,6 @@ services:
- "traefik.http.routers.joclud.tls=true"
- "traefik.http.routers.joclud.tls.certresolver=myresolver"
- "traefik.http.services.joclud.loadbalancer.server.port=80"
container_name: joclud_api
networks:
traefik: