From 6109c90d0606f7a81c4e590eb88eca5e8e481311 Mon Sep 17 00:00:00 2001 From: nikitastykov Date: Wed, 8 Dec 2021 18:55:58 +0000 Subject: [PATCH 1/2] Changed the python version to the supported and tested one. Removed extra requirements.txt installation. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 55bc0d1..fa0b87a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ -FROM python:alpine +FROM python:alpine3.4 RUN apk add --no-cache gettext WORKDIR /app/ COPY requirements.txt . -RUN pip install -r requirements.txt COPY . . From a8d5132dc518cf911d3246ab1be8d4c9ed15a43e Mon Sep 17 00:00:00 2001 From: Nikita <43541437+nikitastykov@users.noreply.github.com> Date: Thu, 9 Dec 2021 05:46:44 +0100 Subject: [PATCH 2/2] Updated Dockerfile Added the working and tested Python version, Previous imported the last version of python, which is not compatible Removed extra install requirements.txt step --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fa0b87a..bb84073 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,12 @@ RUN apk add --no-cache gettext WORKDIR /app/ COPY requirements.txt . +RUN pip install -r requirements.txt COPY . . RUN cd locales && find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec ash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \; -RUN pip install -r requirements.txt VOLUME /app/data ENV UNO_DB /app/data/uno.sqlite3