From 34d3ca5829028a40641ddf0a8bccc5135def07f1 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 10 Dec 2024 22:31:29 +0800 Subject: [PATCH] Optimize Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a99f3c3..2a07ced 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY ./ /usr/local/app/ RUN npm install --save-dev RUN npm run build -FROM nginx:latest +FROM nginx:alpine-slim RUN rm -rf /usr/share/nginx/html/* COPY --from=build /usr/local/app/build/ /usr/share/nginx/html COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf