-
Notifications
You must be signed in to change notification settings - Fork 825
/
Dockerfile
44 lines (35 loc) · 993 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM docker.io/nginxproxy/docker-gen:0.14.4 AS docker-gen
FROM docker.io/library/alpine:3.20.3
ARG GIT_DESCRIBE="unknown"
ARG ACMESH_VERSION=3.1.0
ENV ACMESH_VERSION=${ACMESH_VERSION} \
COMPANION_VERSION=${GIT_DESCRIBE} \
DOCKER_HOST=unix:///var/run/docker.sock \
PATH=${PATH}:/app
# Install packages required by the image
RUN apk add --no-cache --virtual .bin-deps \
bash \
bind-tools \
coreutils \
curl \
jq \
libidn \
oath-toolkit-oathtool \
openssh-client \
openssl \
sed \
socat \
tar \
tzdata
# Install docker-gen from the nginxproxy/docker-gen image
COPY --from=docker-gen /usr/local/bin/docker-gen /usr/local/bin/
# Install acme.sh
COPY /install_acme.sh /app/install_acme.sh
RUN chmod +rx /app/install_acme.sh \
&& sync \
&& /app/install_acme.sh \
&& rm -f /app/install_acme.sh
COPY app LICENSE /app/
WORKDIR /app
ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ]
CMD [ "/bin/bash", "/app/start.sh" ]