Install deps Use a user
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,4 +1,13 @@
|
||||
FROM python:3.7
|
||||
|
||||
RUN useradd --create-home appuser
|
||||
|
||||
COPY requirements.txt /home/appuser
|
||||
RUN pip install -r /home/appuser/requirements.txt
|
||||
|
||||
|
||||
WORKDIR /home/appuser
|
||||
USER appuser
|
||||
|
||||
COPY bibcheck.py /
|
||||
CMD ["python", "bibcheck.py"]
|
||||
CMD ["python", "./bibcheck.py"]
|
||||
|
||||
Reference in New Issue
Block a user