Update Dockerfile

This commit is contained in:
Keannu Bernasol 2024-12-10 22:38:47 +08:00
parent 2badacf607
commit 67f2876354

View file

@ -5,7 +5,7 @@ COPY ./ /usr/local/app/
RUN npm install --save-dev RUN npm install --save-dev
RUN npm run build RUN npm run build
FROM nginx:alpine-slim FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
COPY --from=build /usr/local/app/build/ /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 COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf