This commit is contained in:
Irwan Cahyono 2025-08-07 22:33:32 +07:00
parent d3d44dacdb
commit 522c3f369b

View File

@ -10,8 +10,8 @@ COPY . .
#RUN npm run build #RUN npm run build
RUN npm run generate RUN npm run generate
RUN ls -lah .output/public # RUN ls -lah .output/public
RUN test -f .output/public/index.html # RUN test -f .output/public/index.html
# Gunakan NGINX untuk menyajikan SPA # Gunakan NGINX untuk menyajikan SPA
FROM nginx:1.29.0-alpine-slim FROM nginx:1.29.0-alpine-slim
@ -20,7 +20,7 @@ RUN rm -rf /usr/share/nginx/html/*
RUN rm /etc/nginx/conf.d/default.conf RUN rm /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dsit /usr/share/nginx/html COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80