chore: build
This commit is contained in:
@@ -66,8 +66,8 @@ USER root
|
|||||||
RUN mkdir -p /var/log/modsec /etc/nginx/certs && \
|
RUN mkdir -p /var/log/modsec /etc/nginx/certs && \
|
||||||
chown -R nginx:nginx /var/log/modsec /etc/nginx/certs /usr/share/nginx/html
|
chown -R nginx:nginx /var/log/modsec /etc/nginx/certs /usr/share/nginx/html
|
||||||
|
|
||||||
COPY docker/backend/nginx.conf /etc/nginx/conf.d/app.conf
|
COPY docker-pre-prod/backend/nginx.conf /etc/nginx/conf.d/app.conf
|
||||||
COPY docker/backend/custom-rules.conf /etc/nginx/modsec/custom-rules.conf
|
COPY docker-pre-prod/backend/custom-rules.conf /etc/nginx/modsec/custom-rules.conf
|
||||||
RUN echo "Include /etc/nginx/modsec/custom-rules.conf" > /etc/nginx/modsec/custom-includes.conf && \
|
RUN echo "Include /etc/nginx/modsec/custom-rules.conf" > /etc/nginx/modsec/custom-includes.conf && \
|
||||||
rm -f /etc/nginx/templates/conf.d/default.conf.template || true
|
rm -f /etc/nginx/templates/conf.d/default.conf.template || true
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ RUN npm run build
|
|||||||
# =========================================================
|
# =========================================================
|
||||||
FROM nginx:alpine AS runtime
|
FROM nginx:alpine AS runtime
|
||||||
|
|
||||||
COPY docker/frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY docker-pre-prod/frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user