ng
This commit is contained in:
+3
-1
@@ -13,7 +13,7 @@ RUN npm run build
|
||||
# Dockerfile untuk server Nuxt 3
|
||||
FROM nginx:1.29-alpine
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/* && \
|
||||
RUN rm -rf /var/www/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/
|
||||
@@ -23,6 +23,8 @@ COPY --from=builder /app/.output/public /var/www/html
|
||||
RUN chown -R nginx:nginx /var/www/html && \
|
||||
chmod -R 755 /var/www/html
|
||||
|
||||
RUN ln -s /var/www/html /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user