-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 973 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
FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx
FROM --platform=$BUILDPLATFORM bitnami/minideb:bullseye AS build
LABEL maintainer="SukkaW <hi@skk.moe>"
ARG SNELL_VERSION=4.0.1
ARG TARGETPLATFORM
COPY --from=xx / /
COPY get-snell-url.sh /get-snell-url.sh
RUN xx-info env \
&& install_packages wget unzip ca-certificates \
&& wget -O snell-server.zip $(/get-snell-url.sh ${SNELL_VERSION} $(xx-info arch)) \
&& unzip snell-server.zip \
&& rm snell-server.zip \
&& xx-verify /snell-server
FROM bitnami/minideb:bullseye
ENV SNELL_HOST=0.0.0.0
ENV SNELL_PORT=8388
ENV SNELL_PSK=
ENV SNELL_OBFS=off
EXPOSE ${SNELL_PORT}/tcp
EXPOSE ${SNELL_PORT}/udp
ENV VPN_USER=
ENV VPN_PASSWD=
ENV VPN_AUTH_GROUP=
ENV VPN_AUTH_CODE=
ENV VPN_HOST=
ENV VPN_SERVERCERT=
ENV VPN_NO_DTLS=
RUN install_packages openconnect ca-certificates
COPY --from=build /snell-server /usr/bin/snell-server
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]