-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (31 loc) · 1.03 KB
/
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
ARG ALPINE_VERSION=latest
ARG S6_OVERLAY_VERSION=v3.2.0.0
ARG ACMEPROXY_VERSION=refs/heads/main
FROM socheatsok78/s6-overlay-distribution:${S6_OVERLAY_VERSION} AS s6-overlay
FROM alpine:${ALPINE_VERSION}
RUN apk add --no-cache bash \
ca-certificates \
cronie \
curl \
openssl \
perl-crypt-bcrypt \
perl-io-socket-ssl \
perl-mojolicious \
socat \
xz
RUN addgroup acmeproxy && \
adduser -D -G acmeproxy acmeproxy
ENV HOME=/home/acmeproxy
WORKDIR /home/acmeproxy
ARG ACMEPROXY_VERSION
ENV ACMEPROXY_VERSION=${ACMEPROXY_VERSION}
ADD https://raw.githubusercontent.com/socheatsok78/acmeproxy.pl/${ACMEPROXY_VERSION}/acmeproxy.pl /acmeproxy.pl
ADD https://raw.githubusercontent.com/socheatsok78/s6-overlay-installer/refs/heads/main/hacks/init-shim /init-shim
RUN chmod +x /init-shim && \
chmod 644 /acmeproxy.pl
COPY --link --from=s6-overlay / /
ADD rootfs /
ENTRYPOINT ["/init-shim"]
CMD ["/docker-entrypoint.sh"]
VOLUME ["/home/acmeproxy/.acme.sh", "/data"]
EXPOSE 9443