refact: use only server
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
FROM nginx:alpine
|
||||
FROM nginx:1.25-alpine
|
||||
|
||||
# Install curl for health checks
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
EXPOSE 80
|
||||
# Add security headers and optimizations
|
||||
RUN echo 'server_tokens off;' >> /etc/nginx/conf.d/security.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost/ || exit 1
|
||||
Reference in New Issue
Block a user