Update Dockerfile

This commit is contained in:
Teddysun 2020-02-15 13:49:34 +09:00
parent 2d6f2db81e
commit 00fadf2a18
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 8 additions and 8 deletions

View File

@ -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" ]

View File

@ -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" ]