summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 048cd6f1a89d212b6bd2b4a6c8ca6eec72f14d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]