23 lines
528 B
Docker
23 lines
528 B
Docker
# proxy-vm/Dockerfile
|
|
FROM nginx:1.27-alpine
|
|
|
|
# Remove default config
|
|
RUN rm -f /etc/nginx/conf.d/default.conf
|
|
|
|
# Copy nginx config
|
|
COPY nginx/nginx.conf /etc/nginx/nginx.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
|
|
|
|
EXPOSE 8080
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
CMD wget -qO- http://localhost:8080/health || exit 1
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|