1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| FROM alpine
|
| RUN apk add uwsgi-python3 python3 py3-pip
| RUN mkdir -p /run/docker/plugins /usr/src/app \
| && chown -R nobody:nobody /run/docker/plugins /usr/src/app
| USER nobody
| ENV HOME=/usr/src/app
| WORKDIR /usr/src/app
|
| COPY --chown=nobody:nobody requirements.txt .
| RUN pip3 install --user --no-cache-dir -r requirements.txt
|
| COPY --chown=nobody:nobody . .
|
| CMD [ "uwsgi", "--ini", "uwsgi.ini" ]
|
|