From f35fae26b68420ba191cf6ff73b2b4b8a704077e Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 5 Aug 2021 22:30:35 +0100 Subject: [PATCH] Rebuilt with Alpine instead of Buster --- docker-compose.yml | 24 ++++++++++++------------ interaction/Dockerfile | 2 +- posting/Dockerfile | 2 +- posting/script.py | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c10bfc2..7212d2a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,22 +7,22 @@ services: - ./interaction:/usr/src/app restart: always environment: - - BOT_VERSION=${BOT_VERSION} - - BEARER_TOKEN=${BEARER_TOKEN} - - ACCESS_TOKEN=${ACCESS_TOKEN} - - ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET} - - API_TOKEN=${API_TOKEN} - - API_KEY_SECRET=${API_KEY_SECRET} + - BOT_VERSION + - BEARER_TOKEN + - ACCESS_TOKEN + - ACCESS_TOKEN_SECRET + - API_TOKEN + - API_KEY_SECRET perseveringbot-pos: build: ./posting volumes: - ./posting:/usr/src/app restart: always environment: - - BOT_VERSION=${BOT_VERSION} - - BEARER_TOKEN=${BEARER_TOKEN} - - ACCESS_TOKEN=${ACCESS_TOKEN} - - ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET} - - API_TOKEN=${API_TOKEN} - - API_KEY_SECRET=${API_KEY_SECRET} + - BOT_VERSION + - BEARER_TOKEN + - ACCESS_TOKEN + - ACCESS_TOKEN_SECRET + - API_TOKEN + - API_KEY_SECRET \ No newline at end of file diff --git a/interaction/Dockerfile b/interaction/Dockerfile index 23736fe..f92237a 100644 --- a/interaction/Dockerfile +++ b/interaction/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8.6-buster +FROM python:alpine COPY . /usr/src/app WORKDIR /usr/src/app RUN pip install --upgrade pip diff --git a/posting/Dockerfile b/posting/Dockerfile index 9a67554..9b6c5e1 100644 --- a/posting/Dockerfile +++ b/posting/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8.6-buster +FROM python:alpine COPY . /usr/src/app WORKDIR /usr/src/app RUN pip install --upgrade pip diff --git a/posting/script.py b/posting/script.py index 1b96459..193730d 100644 --- a/posting/script.py +++ b/posting/script.py @@ -46,7 +46,7 @@ def get_word(syl): def posting(): words = generate_words() - output = f'What is {words[0]}, if not {words[1]} persevering?' + output = f'What is {words[0]} if not {words[1]} persevering?' print(output) # api.update_status(output) with open('/usr/src/app/post_log.txt', 'a') as logFile: