diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-17 01:47:57 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-17 01:52:26 +0200 |
commit | c21f4b3dacd597a15a5ec39d525df1dfe1b70376 (patch) | |
tree | 0dfc51d2ffeb7b5022d9ad852f2fd3620c72196a /Dockerfile | |
parent | 2c6f98aeef4fa1aba5678fe17c8e762a11db7b40 (diff) | |
download | restaurant-orders-main.tar.gz restaurant-orders-main.zip |
Add project.main
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"] | ||