-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 1.25 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
FROM nginx:1.27.3-bookworm@sha256:0c86dddac19f2ce4fd716ac58c0fd87bf69bfd4edabfd6971fb885bafd12a00b
ARG DEBIAN_FRONTEND='noninteractive'
# renovate: datasource=github-releases depName=just-containers/s6-overlay versioning=loose
ARG S6_OVERLAY_VERSION=v3.2.0.2
ARG S6_OVERLAY_BASE_URL=https://github.com/just-containers/s6-overlay/releases/download
RUN set -x && \
apt-get update && apt-get install -y xz-utils && \
curl --fail ${S6_OVERLAY_BASE_URL}/${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz -SLo- | tar -C / -Jxpf - && \
curl --fail ${S6_OVERLAY_BASE_URL}/${S6_OVERLAY_VERSION}/s6-overlay-`uname -m| sed 's/armv7l/armhf/g'`.tar.xz -SLo- | tar -C / -Jxpf - && \
apt-get purge -y --auto-remove xz-utils
COPY --from=fatedier/frps:v0.61.1@sha256:de6a77895fa081651727187e2ac7e51f17e3af380938c6b05b724b18359ee907 \
/usr/bin/frps /usr/bin/frps
COPY rootfs/ /
COPY rootfs-s6-rc/ /
RUN set -eux && \
mv /docker-entrypoint.sh /docker-entrypoint-nginx.sh && \
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y unzip zip wget && \
bash /dl-frpc.sh && rm /dl-frpc.sh && \
apt-get purge -y --auto-remove unzip zip wget && \
rm -rf /var/lib/apt/lists/*
STOPSIGNAL SIGTERM
ENTRYPOINT ["/init"]
EXPOSE 80 7000