1
0
docker-letsencrypt-nginx-pr.../Dockerfile

45 lines
993 B
Docker
Raw Normal View History

FROM docker.io/nginxproxy/docker-gen:0.14.2 AS docker-gen
FROM docker.io/library/alpine:3.20.3
2015-12-31 18:50:25 +01:00
2024-01-16 07:49:08 +01:00
ARG GIT_DESCRIBE="unknown"
2024-09-24 16:18:26 +02:00
ARG ACMESH_VERSION=3.0.9
2024-01-16 07:49:08 +01:00
ENV ACMESH_VERSION=${ACMESH_VERSION} \
COMPANION_VERSION=${GIT_DESCRIBE} \
DOCKER_HOST=unix:///var/run/docker.sock \
2024-01-16 07:49:08 +01:00
PATH=${PATH}:/app
2016-02-26 19:07:11 +01:00
# Install packages required by the image
2020-10-20 11:45:41 +02:00
RUN apk add --no-cache --virtual .bin-deps \
bash \
2024-01-15 10:55:43 +01:00
bind-tools \
coreutils \
curl \
jq \
2024-01-15 10:55:43 +01:00
libidn \
oath-toolkit-oathtool \
openssh-client \
openssl \
2024-01-15 10:55:43 +01:00
sed \
socat \
tar \
tzdata
2015-12-31 18:50:25 +01:00
# Install docker-gen from the nginxproxy/docker-gen image
COPY --from=docker-gen /usr/local/bin/docker-gen /usr/local/bin/
2015-12-31 18:50:25 +01:00
2020-10-11 21:07:44 +02:00
# Install acme.sh
2018-12-31 12:53:21 +01:00
COPY /install_acme.sh /app/install_acme.sh
RUN chmod +rx /app/install_acme.sh \
&& sync \
2018-12-31 12:53:21 +01:00
&& /app/install_acme.sh \
&& rm -f /app/install_acme.sh
2015-12-31 18:50:25 +01:00
2022-03-09 14:04:32 +01:00
COPY app LICENSE /app/
WORKDIR /app
ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ]
CMD [ "/bin/bash", "/app/start.sh" ]