make dockerfile use arguments
This commit is contained in:
parent
ff10461845
commit
957a7450ab
1 changed files with 4 additions and 1 deletions
|
|
@ -17,4 +17,7 @@ RUN apk add openssl zlib gperf
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /usr/src/app/build/telegram-bot-api .
|
COPY --from=builder /usr/src/app/build/telegram-bot-api .
|
||||||
|
|
||||||
ENTRYPOINT [ "/app/telegram-bot-api", "--api-id=${API_ID}", "--api-hash=${API_HASH}", "--local", "-http-port=${HTTP_PORT}" ]
|
ARG API_ID
|
||||||
|
ARG API_HASH
|
||||||
|
ARG HTTP_PORT
|
||||||
|
ENTRYPOINT /app/telegram-bot-api --api-id=$API_ID --api-hash=$API_HASH --local --http-port=$HTTP_PORT
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue