aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 476dccd409dadb27ff4489b62f0acd6f4f3e1b1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:latest

RUN apk update && apk add python3 py3-setuptools py3-virtualenv postgresql-client
RUN apk add linux-headers postgresql-dev gcc python3-dev libc-dev

COPY app/requirements.txt /requirements.txt
RUN pip3 install --no-cache-dir -r /requirements.txt
RUN rm /requirements.txt
RUN pip3 install --no-cache-dir uwsgi


RUN apk del linux-headers postgresql-dev gcc python3-dev libc-dev

# Feel free to change the UID if necessary
RUN adduser -D -H -u 1000 app

# RUN apk add uwsgi-python3


RUN mkdir /app  /static && chown app /app /static

USER app

CMD [ "uwsgi", "--ini", "/app/uwsgi.ini" ]