From c8f1a416d3e73d6e41812eb422de5287fadec7e9 Mon Sep 17 00:00:00 2001 From: Suchin Sapphasitthatha Date: Mon, 16 Dec 2024 19:37:52 +0700 Subject: [PATCH] fix dockerfile --- docker/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;"]