-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build shadowsocks-rust image from Alpine edge Branch and community Repository Signed-off-by: Teddysun <[email protected]>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Dockerfile for shadowsocks-rust based alpine | ||
# Copyright (C) 2020 - 2024 Teddysun <[email protected]> | ||
# Reference URL: | ||
# https://github.com/shadowsocks/shadowsocks-rust | ||
# https://github.com/shadowsocks/v2ray-plugin | ||
# https://github.com/teddysun/v2ray-plugin | ||
# https://github.com/teddysun/xray-plugin | ||
|
||
FROM alpine:edge | ||
LABEL maintainer="Teddysun <[email protected]>" | ||
|
||
ARG TARGETPLATFORM | ||
WORKDIR /root | ||
COPY v2ray-plugin.sh /root/v2ray-plugin.sh | ||
COPY xray-plugin.sh /root/xray-plugin.sh | ||
COPY config_sample.json /etc/shadowsocks-rust/config.json | ||
RUN set -ex \ | ||
&& chmod +x /root/v2ray-plugin.sh /root/xray-plugin.sh \ | ||
&& apk add --no-cache tzdata rng-tools ca-certificates shadowsocks-rust \ | ||
&& /root/v2ray-plugin.sh "${TARGETPLATFORM}" \ | ||
&& /root/xray-plugin.sh "${TARGETPLATFORM}" \ | ||
&& rm -f /root/v2ray-plugin.sh /root/xray-plugin.sh | ||
|
||
VOLUME /etc/shadowsocks-rust | ||
ENV TZ=Asia/Shanghai | ||
CMD [ "/usr/bin/ssservice", "server", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ] |