init
This commit is contained in:
26
Containers/Dockerfile_arm64
Normal file
26
Containers/Dockerfile_arm64
Normal file
@@ -0,0 +1,26 @@
|
||||
#Используем базовый образ с 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-arm64.7z /opt/tun2socks/tun2socks.7z
|
||||
|
||||
#Xray core
|
||||
RUN mkdir /opt/xray/
|
||||
RUN mkdir /opt/xray/config/
|
||||
COPY ./xray-core/Xray-linux-arm64-v8a.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
|
||||
Reference in New Issue
Block a user