2022-03-24 18:26:25 +01:00
|
|
|
FROM nginxproxy/docker-gen:0.8.4 AS docker-gen
|
2018-06-05 09:37:32 +02:00
|
|
|
|
2022-04-05 17:08:52 +02:00
|
|
|
FROM alpine:3.15.4
|
2015-12-31 18:50:25 +01:00
|
|
|
|
2020-10-20 14:36:10 +02:00
|
|
|
ARG GIT_DESCRIBE
|
2021-12-08 02:15:50 +01:00
|
|
|
ARG ACMESH_VERSION=2.9.0
|
2020-11-17 23:06:14 +01:00
|
|
|
|
2020-10-20 14:36:10 +02:00
|
|
|
ENV COMPANION_VERSION=$GIT_DESCRIBE \
|
|
|
|
DOCKER_HOST=unix:///var/run/docker.sock \
|
2018-12-31 12:53:21 +01:00
|
|
|
PATH=$PATH:/app
|
2016-02-26 19:07:11 +01:00
|
|
|
|
2017-11-22 22:55:19 +01:00
|
|
|
# Install packages required by the image
|
2020-10-20 11:45:41 +02:00
|
|
|
RUN apk add --no-cache --virtual .bin-deps \
|
2022-01-14 15:57:57 +01:00
|
|
|
bash \
|
|
|
|
coreutils \
|
|
|
|
curl \
|
|
|
|
jq \
|
|
|
|
openssl \
|
|
|
|
socat
|
2015-12-31 18:50:25 +01:00
|
|
|
|
2021-12-15 01:07:46 +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 \
|
2018-06-05 09:37:32 +02:00
|
|
|
&& 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/
|
2017-11-22 22:55:19 +01:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ]
|
|
|
|
CMD [ "/bin/bash", "/app/start.sh" ]
|