21 lines
488 B
Docker
21 lines
488 B
Docker
|
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
|