From b9a9fa0c92494e337002b6d6d0b3a13ab73ab87c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 11 Sep 2019 13:45:14 +0200 Subject: [PATCH] Use alpine docker image --- ansible.yml | 1 + communistquotes/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible.yml b/ansible.yml index 17537e9..249ebd6 100644 --- a/ansible.yml +++ b/ansible.yml @@ -14,6 +14,7 @@ - setup: # gather facts tasks: + # TODO: this approach sucks because it always deploys from current master, instead of the local files - name: clone/update git repo git: repo: 'https://0xacab.org/radical_coder/pinko.red.git' diff --git a/communistquotes/Dockerfile b/communistquotes/Dockerfile index 82d3608..a525d0e 100644 --- a/communistquotes/Dockerfile +++ b/communistquotes/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3-alpine WORKDIR /usr/src/app @@ -7,4 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -CMD [ "python", "./main.py" ] \ No newline at end of file +CMD [ "python", "./main.py" ]