nginx-routes/Dockerfile
amorozov 518136fa35
Some checks failed
Gitea/docker-base-images/nginx-routes/pipeline/head There was a failure building this commit
fix: added -y flag to apt install
2023-09-02 00:14:45 +03:00

16 lines
383 B
Docker

ARG BASE_IMAGE="nginx"
FROM ${BASE_IMAGE}
# Install ping and ip
RUN apt update && \
apt install -y iproute2 iputils-ping
# Copy entrypoint
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 /
# Execute entrypoint
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "app" ]