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"