add host
Build Admin / Build image (push) Successful in 37s

This commit is contained in:
2026-07-09 14:41:17 +07:00
parent c4aead7f8c
commit b2c7e7ba80
10 changed files with 307 additions and 205 deletions
+5 -4
View File
@@ -4,17 +4,18 @@ FROM nginx:1.27-alpine
# Remove default config
RUN rm -f /etc/nginx/conf.d/default.conf
# Copy nginx config
# Copy nginx configs
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/locations.conf /etc/nginx/locations.conf
# Copy entrypoint script
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Create conf.d directory for generated configs
RUN mkdir -p /etc/nginx/conf.d
# Create directories for generated configs and optional SSL certs
RUN mkdir -p /etc/nginx/conf.d /etc/nginx/ssl
EXPOSE 8080
EXPOSE 8080 8443
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD wget -qO- http://localhost:8080/health || exit 1