From f2c2b2b3817d01f11f06cb0f1da6b42e0dfeaecf Mon Sep 17 00:00:00 2001 From: Ahurac Date: Wed, 31 Jan 2024 17:20:53 +0100 Subject: [PATCH] Docker : suppression des skill issue --- Dockerfile | 6 +++--- docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 623ed2c..c490939 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM node:lts-alpine AS build WORKDIR /app -COPY package.json package-lock.json . +COPY . . RUN npm install --production && \ npm run build -FROM nginx:alpine AS serve -COPY --from=build /app/dist /usr/share/nginx/html +FROM nginx:alpine +COPY --from=build --chown=nginx:nginx /app/dist /usr/share/nginx/html diff --git a/docker-compose.yml b/docker-compose.yml index 054ebf5..63eb364 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,4 +5,4 @@ services: context: . restart: unless-stopped ports: - - "${AHURAC_PORT}:4321" + - "${AHURAC_PORT}:80"