Compare commits

..

1 Commits

Author SHA1 Message Date
Terekhin Alexandr c63ca25aba Working version, env vars to file 4 years ago
  1. 9
      Dockerfile

@ -6,11 +6,14 @@ RUN apk add --no-cache openssl-dev linux-headers zlib-dev gcc gperf cmake build-
&& cd build \ && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \ && cmake -DCMAKE_BUILD_TYPE=Release .. \
&& cmake --build . --target install \ && cmake --build . --target install \
&& apk del linux-headers gcc gperf cmake build-base git && apk del linux-headers gcc gperf cmake build-base git \
RUN adduser --no-create-home --uid 2000 --disabled-password tg-bot && rm -r ./telegram-bot-api
RUN adduser --no-create-home --uid 2000 --disabled-password tg-bot \
&& mkdir -p /opt/telegram-bot-api \
&& chown tg-bot:tg-bot /opt/telegram-bot-api
ENV TELEGRAM_API_ID="" ENV TELEGRAM_API_ID=""
ENV TELEGRAM_API_HASH="" ENV TELEGRAM_API_HASH=""
EXPOSE 8081/tcp EXPOSE 8081/tcp
USER tg-bot USER tg-bot
ENTRYPOINT ["/usr/local/bin/telegram-bot-api", "--local"] ENTRYPOINT ["/usr/local/bin/telegram-bot-api", "--local", "--dir=/opt/telegram-bot-api"]
Loading…
Cancel
Save