Spaces:
Sleeping
Sleeping
vancyferns
commited on
Commit
·
a946a90
1
Parent(s):
b0a5f82
updated dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -25,9 +25,10 @@ USER appuser
|
|
| 25 |
ENV DEEPFACE_HOME=/app
|
| 26 |
|
| 27 |
# Copy the requirements file from the 'model' directory
|
|
|
|
| 28 |
COPY model/requirements.txt .
|
| 29 |
|
| 30 |
-
# Install Python dependencies
|
| 31 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 32 |
|
| 33 |
# Copy the rest of the 'model' directory's contents
|
|
|
|
| 25 |
ENV DEEPFACE_HOME=/app
|
| 26 |
|
| 27 |
# Copy the requirements file from the 'model' directory
|
| 28 |
+
# This step must happen after the user switch so pip installs for 'appuser'
|
| 29 |
COPY model/requirements.txt .
|
| 30 |
|
| 31 |
+
# Install Python dependencies, including gunicorn
|
| 32 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 33 |
|
| 34 |
# Copy the rest of the 'model' directory's contents
|