Skip to content

Commit

Permalink
Modified docker files for building images with env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
annaa-ka committed May 2, 2022
1 parent f3265d2 commit 6834dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM python:latest
ARG TELEGRAM_BOT_TOKEN
ENV TELEGRAM_BOT_TOKEN=$TELEGRAM_BOT_TOKEN
ARG YANDEX_TOKEN
ENV YANDEX_TOKEN=$YANDEX_TOKEN
RUN mkdir -p /app
WORKDIR /app
COPY ./docker/requirements.txt requirements.txt
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
- "com.centurylinklabs.watchtower.scope=myscope"
environment:
TELEGRAM_BOT_TOKEN: "${TELEGRAM_BOT_TOKEN}"
YANDEX_TOKEN: "${YANDEX_TOKEN}"

watchtower:
image: containrrr/watchtower
Expand Down

0 comments on commit 6834dba

Please sign in to comment.