From c21f4b3dacd597a15a5ec39d525df1dfe1b70376 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Mon, 17 Jul 2023 01:47:57 +0200 Subject: Add project. --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..048cd6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM python:3 +LABEL maintainer="jdlugosz963@gmail.com" + +WORKDIR /usr/src/app + +COPY ./scripts /usr/src/scripts +RUN chmod +x /usr/src/scripts/* +ENV PATH /usr/src/scripts:$PATH + +COPY requirements.txt . +RUN pip install -r requirements.txt + +COPY ./restaurant_orders/ . + + +RUN useradd nonrootuser + +RUN mkdir -p /vol/web/static +RUN chown -R nonrootuser:nonrootuser /vol +RUN chmod -R 755 /vol + +RUN chown -R nonrootuser:nonrootuser /usr/src + +USER nonrootuser + +CMD ["entrypoint.sh"] -- cgit v1.2.3