diff --git a/Dockerfile b/Dockerfile index aa87bb5..c47eda9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,23 @@ FROM python:3.8-alpine -# RUN apk add --no-cache something -RUN pip install --upgrade pip -RUN pip install gunicorn +RUN apk add --no-cache gcc +RUN apk add --no-cache python3-dev +RUN apk add --no-cache libc-dev +RUN apk add --no-cache libffi-dev +RUN apk add --no-cache openssl +RUN apk add --no-cache openssl-dev + +RUN adduser -D deploy +USER deploy +ENV PATH "$PATH:/home/deploy/.local/bin" COPY . /app WORKDIR /app +RUN pip install --upgrade pip +RUN pip install gunicorn +RUN pip install wheel + RUN pip install -r requirements.txt RUN flit install --pth-file diff --git a/requirements.txt b/requirements.txt index 5a56805..170399a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -40,8 +40,6 @@ passlib==1.7.2 PasteDeploy==2.1.0 pathspec==0.8.0 peppercorn==0.6 -pip==20.2.3 -pkg-resources==0.0.0 plaster==1.0 plaster-pastedeploy==0.7 pluggy==0.13.1 @@ -69,7 +67,6 @@ repoze.lru==0.7 repoze.sendmail==4.4.1 requests==2.24.0 SecretStorage==3.1.2 -setuptools==44.0.0 six==1.15.0 soupsieve==2.0.1 SQLAlchemy==1.3.19