Skip to content

Commit 1518cb4

Browse files
committed
Optimizes image size
1 parent a621ba5 commit 1518cb4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ RUN apk add --no-cache --virtual .build-deps \
1818
# && apk del .build-deps
1919

2020
FROM alpine:3.6
21-
LABEL maintainer="Alex Doe <[email protected]>"
22-
LABEL description="Telegram Messenger MTProto zero-configuration proxy server."
21+
LABEL maintainer="Alex Doe <[email protected]>" \
22+
description="Telegram Messenger MTProto zero-configuration proxy server."
2323

2424
RUN apk add --no-cache curl \
2525
&& ln -s /usr/lib/libcrypto.so.41 /usr/lib/libcrypto.so.1.0.0
26+
# alpine:3.7 will need symlink to libcrypto.so.42
2627

2728
WORKDIR /mtproxy
2829

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ curl -s https://core.telegram.org/getProxyConfig -o ${REMOTE_CONFIG} || {
6868
REMOTE_SECRET=/data/proxy-secret
6969
curl -s https://core.telegram.org/getProxySecret -o ${REMOTE_SECRET} || {
7070
echo '[F] Cannot download proxy secret from Telegram servers.'
71-
exit 2
71+
exit 5
7272
}
7373

7474
if [ ! -z "$EXTERNAL_IP" ]; then

0 commit comments

Comments
 (0)