Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM alpine:latest
|
2 |
+
RUN apk add --no-cache curl
|
3 |
+
WORKDIR /app
|
4 |
+
RUN curl -s https://api.github.com/repos/gniloyprolaps/telegram-bot-api-builds/releases/latest \
|
5 |
+
| grep "browser_download_url.*telegram-bot-api" \
|
6 |
+
| cut -d '"' -f 4 \
|
7 |
+
| xargs curl -L -o telegram-bot-api
|
8 |
+
RUN chmod +x telegram-bot-api
|
9 |
+
RUN mkdir -p data temp && chmod 777 data temp
|
10 |
+
ENTRYPOINT ["./telegram-bot-api"]
|
11 |
+
CMD ["--local", "--api-id=<arg>", "--api-hash=<arg>", "--http-port=7860", "--dir=data", "--temp-dir=temp"]
|