From 15d9843f066d7f410aea538c9544bdc72f446b70 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 28 Jun 2023 22:01:09 +0100 Subject: [PATCH] Optimise dockerfile --- dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 5c0cdcb..e090527 100644 --- a/dockerfile +++ b/dockerfile @@ -5,10 +5,9 @@ COPY package.json / COPY package-lock.json / RUN npm install COPY . ./ - RUN npm run build FROM nginx:alpine-slim -COPY --from=build /app/build /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/nginx.conf +COPY --from=build /app/build /usr/share/nginx/html RUN chown -R nginx:nginx /usr/share/nginx/html \ No newline at end of file