Commented most relevant files for submission
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
FROM python:3.6
|
||||
#copy requirements file and install required libraries. CMake is installed seperately because it is needed for face recognition and the way pip installs the requirements file fails as CMake isnt installed in time
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
WORKDIR /app
|
||||
RUN pip install CMake
|
||||
RUN pip install -r requirements.txt
|
||||
RUN rm requirements.txt
|
||||
#make new user so the container duesnt run using root, then copy the api and start it
|
||||
RUN useradd -ms /bin/bash admin
|
||||
USER admin
|
||||
COPY /app .
|
||||
|
Reference in New Issue
Block a user