From 1134fc133cf1a2b69e946b0cf963a156424ce85e Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Fri, 24 Jun 2022 16:05:09 +0200 Subject: [PATCH] fix(build): docker file priority Last step is the default one in docker build. Signed-off-by: rjshrjndrn --- frontend/Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 2ec1dcc44..b5178c273 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -5,15 +5,14 @@ RUN cp .env.example .env RUN yarn RUN yarn build -FROM nginx:alpine -LABEL maintainer=Rajesh - -COPY --from=builder /work/public /var/www/openreplay -COPY nginx.conf /etc/nginx/conf.d/default.conf - FROM nginx:alpine as cicd LABEL maintainer=Rajesh - COPY public /var/www/openreplay COPY nginx.conf /etc/nginx/conf.d/default.conf + +# Default step in docker build +FROM nginx:alpine +LABEL maintainer=Rajesh +COPY --from=builder /work/public /var/www/openreplay +COPY nginx.conf /etc/nginx/conf.d/default.conf