Spaces:
Sleeping
Sleeping
Fixed requirements.txt reference
Browse files- Dockerfile +26 -26
Dockerfile
CHANGED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
-
# For more information, please refer to https://aka.ms/vscode-docker-python
|
| 2 |
-
FROM python:3-slim
|
| 3 |
-
|
| 4 |
-
EXPOSE 8000
|
| 5 |
-
|
| 6 |
-
# Keeps Python from generating .pyc files in the container
|
| 7 |
-
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
-
|
| 9 |
-
# Turns off buffering for easier container logging
|
| 10 |
-
ENV PYTHONUNBUFFERED=1
|
| 11 |
-
WORKDIR /app
|
| 12 |
-
# Install pip requirements
|
| 13 |
-
COPY requirements.txt ./app/requirements.txt
|
| 14 |
-
#COPY summarize_mp4_video.py /app/app.py
|
| 15 |
-
RUN
|
| 16 |
-
RUN apt-get update && apt-get install -y ffmpeg
|
| 17 |
-
|
| 18 |
-
# COPY . /app
|
| 19 |
-
|
| 20 |
-
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
|
| 21 |
-
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
| 22 |
-
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
| 23 |
-
USER appuser
|
| 24 |
-
|
| 25 |
-
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
|
| 26 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "setup:app"]
|
|
|
|
| 1 |
+
# For more information, please refer to https://aka.ms/vscode-docker-python
|
| 2 |
+
FROM python:3-slim
|
| 3 |
+
|
| 4 |
+
EXPOSE 8000
|
| 5 |
+
|
| 6 |
+
# Keeps Python from generating .pyc files in the container
|
| 7 |
+
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
+
|
| 9 |
+
# Turns off buffering for easier container logging
|
| 10 |
+
ENV PYTHONUNBUFFERED=1
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
# Install pip requirements
|
| 13 |
+
COPY requirements.txt ./app/requirements.txt
|
| 14 |
+
#COPY summarize_mp4_video.py /app/app.py
|
| 15 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 16 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
| 17 |
+
|
| 18 |
+
# COPY . /app
|
| 19 |
+
|
| 20 |
+
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
|
| 21 |
+
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
| 22 |
+
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
| 23 |
+
USER appuser
|
| 24 |
+
|
| 25 |
+
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
|
| 26 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "setup:app"]
|