This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:3.7.3-stretch
|
||||
|
||||
COPY requirements.txt /tmp/
|
||||
|
||||
RUN pip install -r /tmp/requirements.txt
|
||||
COPY . /tmp/infomentor
|
||||
RUN pip install /tmp/infomentor
|
||||
|
||||
RUN useradd --create-home appuser
|
||||
WORKDIR /home/appuser
|
||||
USER appuser
|
||||
VOLUME ["/home/appuser"]
|
||||
|
||||
CMD [ "python", "-m", "infomentor" ]
|
||||
Reference in New Issue
Block a user