nginx-routes/Dockerfile

16 lines
383 B
Docker
Raw Normal View History

2023-09-01 23:08:48 +02:00
ARG BASE_IMAGE="nginx"
FROM ${BASE_IMAGE}
# Install ping and ip
RUN apt update && \
2023-09-01 23:14:45 +02:00
apt install -y iproute2 iputils-ping
2023-09-01 23:08:48 +02:00
2023-09-01 23:14:45 +02:00
# Copy entrypoint
2023-09-01 23:10:10 +02:00
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
ln -s /usr/local/bin/docker-entrypoint.sh /
2023-09-01 23:14:45 +02:00
# Execute entrypoint
2023-09-01 23:08:48 +02:00
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "app" ]