From 00fadf2a18611c10f1725fea221f67f781412efc Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sat, 15 Feb 2020 13:49:34 +0900 Subject: [PATCH] Update Dockerfile --- docker/mtproxy/Dockerfile | 8 ++++---- docker/mtproxy/Dockerfile.architecture | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docker/mtproxy/Dockerfile b/docker/mtproxy/Dockerfile index 930d180..2d5586b 100644 --- a/docker/mtproxy/Dockerfile +++ b/docker/mtproxy/Dockerfile @@ -16,15 +16,15 @@ RUN set -ex \ FROM alpine:latest LABEL maintainer="Teddysun " -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" ] \ No newline at end of file +CMD [ "--port", "2398", "--http-ports", "443", "--slaves", "2", "--max-special-connections", "60000", "--allow-skip-dh" ] diff --git a/docker/mtproxy/Dockerfile.architecture b/docker/mtproxy/Dockerfile.architecture index eec3458..ee0aa91 100644 --- a/docker/mtproxy/Dockerfile.architecture +++ b/docker/mtproxy/Dockerfile.architecture @@ -16,15 +16,15 @@ RUN set -ex \ FROM --platform=${TARGETPLATFORM} alpine:latest LABEL maintainer="Teddysun " -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" ] \ No newline at end of file +CMD [ "--port", "2398", "--http-ports", "443", "--slaves", "2", "--max-special-connections", "60000", "--allow-skip-dh" ]