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 WORKDIR /app
COPY . .
COPY . /app
RUN npm i RUN npm i
CMD ["npm", "run", "start"]
CMD npm run start

View file

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