mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2025-02-04 15:47:32 +01:00
23 lines
846 B
Diff
23 lines
846 B
Diff
diff --git a/Dockerfile b/Dockerfile
|
|
index 9c0de671..ce4fec1e 100644
|
|
--- a/Dockerfile
|
|
+++ b/Dockerfile
|
|
@@ -19,7 +19,7 @@ FROM alpine:3.12
|
|
ENV TELEGRAM_WORK_DIR="/var/lib/telegram-bot-api" \
|
|
TELEGRAM_TEMP_DIR="/tmp/telegram-bot-api"
|
|
|
|
-RUN apk add --no-cache --update openssl libstdc++ curl
|
|
+RUN apk add --no-cache --update openssl libstdc++
|
|
COPY --from=build /usr/src/telegram-bot-api/bin/telegram-bot-api /usr/local/bin/telegram-bot-api
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
RUN addgroup -g 101 -S telegram-bot-api \
|
|
@@ -30,6 +30,6 @@ RUN addgroup -g 101 -S telegram-bot-api \
|
|
&& chmod 700 ${TELEGRAM_TEMP_DIR}
|
|
USER telegram-bot-api:telegram-bot-api
|
|
|
|
-HEALTHCHECK CMD curl -f http://localhost:8082/ || exit 1
|
|
+HEALTHCHECK CMD nc -z localhost 8081 || exit 1
|
|
EXPOSE 8081/tcp 8082/tcp
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|