diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..048cd6f --- /dev/null +++ b/Dockerfile | |||
@@ -0,0 +1,26 @@ | |||
1 | FROM python:3 | ||
2 | LABEL maintainer="jdlugosz963@gmail.com" | ||
3 | |||
4 | WORKDIR /usr/src/app | ||
5 | |||
6 | COPY ./scripts /usr/src/scripts | ||
7 | RUN chmod +x /usr/src/scripts/* | ||
8 | ENV PATH /usr/src/scripts:$PATH | ||
9 | |||
10 | COPY requirements.txt . | ||
11 | RUN pip install -r requirements.txt | ||
12 | |||
13 | COPY ./restaurant_orders/ . | ||
14 | |||
15 | |||
16 | RUN useradd nonrootuser | ||
17 | |||
18 | RUN mkdir -p /vol/web/static | ||
19 | RUN chown -R nonrootuser:nonrootuser /vol | ||
20 | RUN chmod -R 755 /vol | ||
21 | |||
22 | RUN chown -R nonrootuser:nonrootuser /usr/src | ||
23 | |||
24 | USER nonrootuser | ||
25 | |||
26 | CMD ["entrypoint.sh"] | ||