This repository has been archived on 2026-11-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2025-11-20 22:17:24 +03:00

26 lines
839 B
Plaintext

#Используем базовый образ с Alpine Linux для минимального размера
ARG ALPINE_VERSION=3.21
#--------------------------------Image--------------------------------
FROM alpine:${ALPINE_VERSION}
RUN set -ex; \
apk update && apk add --no-cache bash openrc openresolv iproute2 libqrencode p7zip
#Tun2Socks
RUN mkdir /opt/tun2socks/
COPY ./tun2socks/tun2socks-linux-armv7.7z /opt/tun2socks/tun2socks.7z
#Xray core
RUN mkdir /opt/xray/
RUN mkdir /opt/xray/config/
COPY ./xray-core/Xray-linux-arm32-v7a.7z /opt/xray/xray.7z
COPY ./start.sh /opt/start.sh
RUN chmod +x /opt/start.sh
RUN sed -i 's/\r//' /opt/start.sh
RUN sed -i 's/^tty/#tty/' /etc/inittab
ENTRYPOINT ["sh", "-c"]
CMD ["/bin/bash /opt/start.sh && /sbin/init"]
#https://github.com/XTLS/Xray-core
#https://github.com/xjasonlyu/tun2socks