-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lans
committed
Aug 19, 2024
1 parent
fe5ff3b
commit 62b303a
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,14 @@ RUN mkdir -p /telegram-bot-api/build && \ | |
# Main image | ||
FROM alpine:latest | ||
LABEL Maintainer="[email protected]" | ||
|
||
ENV API_ID=some_env_id \ | ||
API_HASH=some_api_hash \ | ||
HTTP_PORT=8081 | ||
|
||
RUN apk add zlib openssl gperf && \ | ||
mkdir -p /telegram-bot-api/files /telegram-bot-api/temp | ||
COPY --from=builder /telegram-bot-api/install/bin/telegram-bot-api /telegram-bot-api/ | ||
EXPOSE 8081 | ||
|
||
ENTRYPOINT [ "sh", "-c", "/telegram-bot-api/telegram-bot-api --api-id $API_ID --api-hash $API_HASH --dir /telegram-bot-api/files --temp-dir /telegram-bot-api/temp" ] | ||
ENTRYPOINT [ "sh", "-c", "/telegram-bot-api/telegram-bot-api --api-id $API_ID --api-hash $API_HASH --dir /telegram-bot-api/files --temp-dir /telegram-bot-api/temp --http-port=$HTTP_PORT " ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters