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