summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
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"]