dc
This commit is contained in:
+5
-1
@@ -13,12 +13,16 @@ RUN npm run build
|
||||
# Dockerfile untuk server Nuxt 3
|
||||
FROM nginx:1.29-alpine
|
||||
|
||||
RUN rm -f /etc/nginx/conf.d/default.conf
|
||||
RUN rm -rf /usr/share/nginx/html/* && \
|
||||
rm -f /etc/nginx/conf.d/default.conf
|
||||
# COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/conf.d/
|
||||
|
||||
COPY --from=builder /app/.output/public /usr/share/nginx/html
|
||||
|
||||
RUN chown -R nginx:nginx /usr/share/nginx/html && \
|
||||
chmod -R 755 /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user