summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-17 01:47:57 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-17 01:52:26 +0200
commitc21f4b3dacd597a15a5ec39d525df1dfe1b70376 (patch)
tree0dfc51d2ffeb7b5022d9ad852f2fd3620c72196a /Dockerfile
parent2c6f98aeef4fa1aba5678fe17c8e762a11db7b40 (diff)
downloadrestaurant-orders-c21f4b3dacd597a15a5ec39d525df1dfe1b70376.tar.gz
restaurant-orders-c21f4b3dacd597a15a5ec39d525df1dfe1b70376.zip
Add project.main
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
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 @@
1FROM python:3
2LABEL maintainer="jdlugosz963@gmail.com"
3
4WORKDIR /usr/src/app
5
6COPY ./scripts /usr/src/scripts
7RUN chmod +x /usr/src/scripts/*
8ENV PATH /usr/src/scripts:$PATH
9
10COPY requirements.txt .
11RUN pip install -r requirements.txt
12
13COPY ./restaurant_orders/ .
14
15
16RUN useradd nonrootuser
17
18RUN mkdir -p /vol/web/static
19RUN chown -R nonrootuser:nonrootuser /vol
20RUN chmod -R 755 /vol
21
22RUN chown -R nonrootuser:nonrootuser /usr/src
23
24USER nonrootuser
25
26CMD ["entrypoint.sh"]