diff --git a/docker/Dockerfile b/docker/Dockerfile index c7e4b41..b296dbd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # docker build . -t docker.frappet.com/demo/fe:latest -FROM node:20-alpine as build-stage +FROM node:20-alpine AS build-stage WORKDIR /app COPY package*.json ./ RUN npm install @@ -7,15 +7,14 @@ COPY ./ . RUN npm run build -FROM nginx as production-stage +FROM nginx AS production-stage RUN mkdir /app COPY --from=build-stage /app/dist /app -COPY nginx.conf /etc/nginx/nginx.conf +COPY docker/nginx.conf /etc/nginx/nginx.conf # COPY entrypoint.sh /usr/local/bin/entrypoint.sh # RUN chmod u+x /usr/local/bin/entrypoint.sh - # ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] CMD ["nginx", "-g", "daemon off;"]