Browse Source

bugfixes for dokku deployment

funding-tag
Holger Frey 4 years ago
parent
commit
30746f11ed
  1. 17
      Dockerfile
  2. 3
      requirements.txt

17
Dockerfile

@ -1,12 +1,23 @@ @@ -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

3
requirements.txt

@ -40,8 +40,6 @@ passlib==1.7.2 @@ -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 @@ -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

Loading…
Cancel
Save