dnp-harbor/services/nginx/Dockerfile

21 lines
488 B
Docker
Raw Permalink Normal View History

2024-10-25 18:15:29 +08:00
ARG NGINX_VERSION
FROM ${NGINX_VERSION}
ARG TZ
ARG NGINX_VERSION
ARG CONTAINER_PACKAGE_URL
ARG NGINX_INSTALL_APPS
ENV INSTALL_APPS=",${NGINX_INSTALL_APPS},"
# RUN if [ "${CONTAINER_PACKAGE_URL}" != "" ]; then \
# sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories; \
# fi
RUN if [ -z "${INSTALL_APPS##*,certbot,*}" ]; then \
echo "---------- Install certbot ----------"; \
apk add --no-cache certbot; \
fi
WORKDIR /www