Skip to content

Commit

Permalink
Optimizes image size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdoesh committed Jun 10, 2018
1 parent a621ba5 commit 1518cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ RUN apk add --no-cache --virtual .build-deps \
# && apk del .build-deps

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

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

WORKDIR /mtproxy

Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ curl -s https://core.telegram.org/getProxyConfig -o ${REMOTE_CONFIG} || {
REMOTE_SECRET=/data/proxy-secret
curl -s https://core.telegram.org/getProxySecret -o ${REMOTE_SECRET} || {
echo '[F] Cannot download proxy secret from Telegram servers.'
exit 2
exit 5
}

if [ ! -z "$EXTERNAL_IP" ]; then
Expand Down

0 comments on commit 1518cb4

Please sign in to comment.