zkt25/z2/web/Dockerfile
2025-04-09 06:48:50 +02:00

12 lines
389 B
Docker

FROM httpd:2.4
# Copies your static HTML file into the Apache document root
COPY index.html /usr/local/apache2/htdocs/
# Add a proxy configuration for /counter
RUN echo "ProxyPass /counter http://backend-service:5000/counter" >> /usr/local/apache2/conf/httpd.conf
RUN echo "ProxyPassReverse /counter http://backend-service:5000/counter" >> /usr/local/apache2/conf/httpd.conf
EXPOSE 80