Rebuilt with Alpine instead of Buster

This commit is contained in:
Vivek Santayana 2021-08-05 22:30:35 +01:00
parent 2f10edc3f9
commit f35fae26b6
4 changed files with 15 additions and 15 deletions

View File

@ -7,22 +7,22 @@ services:
- ./interaction:/usr/src/app - ./interaction:/usr/src/app
restart: always restart: always
environment: environment:
- BOT_VERSION=${BOT_VERSION} - BOT_VERSION
- BEARER_TOKEN=${BEARER_TOKEN} - BEARER_TOKEN
- ACCESS_TOKEN=${ACCESS_TOKEN} - ACCESS_TOKEN
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET} - ACCESS_TOKEN_SECRET
- API_TOKEN=${API_TOKEN} - API_TOKEN
- API_KEY_SECRET=${API_KEY_SECRET} - API_KEY_SECRET
perseveringbot-pos: perseveringbot-pos:
build: ./posting build: ./posting
volumes: volumes:
- ./posting:/usr/src/app - ./posting:/usr/src/app
restart: always restart: always
environment: environment:
- BOT_VERSION=${BOT_VERSION} - BOT_VERSION
- BEARER_TOKEN=${BEARER_TOKEN} - BEARER_TOKEN
- ACCESS_TOKEN=${ACCESS_TOKEN} - ACCESS_TOKEN
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET} - ACCESS_TOKEN_SECRET
- API_TOKEN=${API_TOKEN} - API_TOKEN
- API_KEY_SECRET=${API_KEY_SECRET} - API_KEY_SECRET

View File

@ -1,4 +1,4 @@
FROM python:3.8.6-buster FROM python:alpine
COPY . /usr/src/app COPY . /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN pip install --upgrade pip RUN pip install --upgrade pip

View File

@ -1,4 +1,4 @@
FROM python:3.8.6-buster FROM python:alpine
COPY . /usr/src/app COPY . /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN pip install --upgrade pip RUN pip install --upgrade pip

View File

@ -46,7 +46,7 @@ def get_word(syl):
def posting(): def posting():
words = generate_words() 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) print(output)
# api.update_status(output) # api.update_status(output)
with open('/usr/src/app/post_log.txt', 'a') as logFile: with open('/usr/src/app/post_log.txt', 'a') as logFile: