Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
Build shadowsocks-rust image from Alpine edge Branch and community Repository

Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Dec 31, 2024
1 parent bcefbae commit c8e9816
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker/shadowsocks-rust/Dockerfile_edge.alpine
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" ]

0 comments on commit c8e9816

Please sign in to comment.