commit | author | age | ||
f973b9 | 1 | FROM alpine |
JK | 2 | |
50a46b | 3 | RUN apk add python3 py3-pip |
f973b9 | 4 | RUN mkdir -p /run/docker/plugins /usr/src/app \ |
JK | 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 | ||
50a46b | 15 | CMD [ "./run.py" ] |