mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Update Dockerfile
This commit is contained in:
parent
2d6f2db81e
commit
00fadf2a18
@ -16,15 +16,15 @@ RUN set -ex \
|
||||
FROM alpine:latest
|
||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache curl tzdata
|
||||
|
||||
COPY entrypoint.sh /
|
||||
COPY --from=builder /root/MTProxy/objs/bin/mtproto-proxy /usr/bin
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache curl tzdata \
|
||||
&& chmod 755 /entrypoint.sh
|
||||
ENV TZ=Asia/Shanghai
|
||||
EXPOSE 443 2398
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD [ "--port", "2398", "--http-ports", "443", "--slaves", "2", "--max-special-connections", "60000", "--allow-skip-dh" ]
|
||||
CMD [ "--port", "2398", "--http-ports", "443", "--slaves", "2", "--max-special-connections", "60000", "--allow-skip-dh" ]
|
||||
|
@ -16,15 +16,15 @@ RUN set -ex \
|
||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache curl tzdata
|
||||
|
||||
COPY entrypoint.sh /
|
||||
COPY --from=builder /root/MTProxy/objs/bin/mtproto-proxy /usr/bin
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache curl tzdata \
|
||||
&& chmod 755 /entrypoint.sh
|
||||
ENV TZ=Asia/Shanghai
|
||||
EXPOSE 443 2398
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD [ "--port", "2398", "--http-ports", "443", "--slaves", "2", "--max-special-connections", "60000", "--allow-skip-dh" ]
|
||||
CMD [ "--port", "2398", "--http-ports", "443", "--slaves", "2", "--max-special-connections", "60000", "--allow-skip-dh" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user