From b95c6ec1678bf2ab41ed7a079a209fa24fa908cc Mon Sep 17 00:00:00 2001 From: Nicolas Gelot Date: Wed, 15 May 2019 16:53:20 +0200 Subject: [PATCH] Fix python package build in docker env --- .dockerignore | 1 - Dockerfile | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 2b29f2764..000000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -tests diff --git a/Dockerfile b/Dockerfile index 40ac3eb32..d71dc69a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,8 @@ RUN apk add \ libxml2-dev \ libxslt-dev -# Only to use the docker cache and optimize the build time -WORKDIR /src -COPY requirements.txt /src/requirements.txt -RUN pip3 install --prefix /install -r requirements.txt - COPY . /src/ -RUN PYTHONPATH=/install/lib/python3.7/site-packages/ python3 setup.py install --prefix /install +RUN pip3 install --prefix /install /src FROM python:3.7-alpine -- GitLab