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