Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
FROM python:3.8
|
2 |
|
3 |
-
# Install git as root
|
4 |
-
RUN apt-get update && apt-get install -y git
|
5 |
|
6 |
# Create a non-root user
|
7 |
RUN useradd -m -u 1000 user
|
@@ -19,7 +19,8 @@ WORKDIR /app/fastn8n
|
|
19 |
# Set up virtual environment and dependencies
|
20 |
RUN python -m venv shared_env && \
|
21 |
shared_env/bin/pip install --upgrade pip && \
|
22 |
-
shared_env/bin/pip install -r requirements.txt
|
|
|
23 |
|
24 |
EXPOSE 7860
|
25 |
CMD ["shared_env/bin/python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.8
|
2 |
|
3 |
+
# Install git and ffmpeg as root
|
4 |
+
RUN apt-get update && apt-get install -y git ffmpeg
|
5 |
|
6 |
# Create a non-root user
|
7 |
RUN useradd -m -u 1000 user
|
|
|
19 |
# Set up virtual environment and dependencies
|
20 |
RUN python -m venv shared_env && \
|
21 |
shared_env/bin/pip install --upgrade pip && \
|
22 |
+
shared_env/bin/pip install -r requirements.txt && \
|
23 |
+
shared_env/bin/pip install numpy opencv-python
|
24 |
|
25 |
EXPOSE 7860
|
26 |
CMD ["shared_env/bin/python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|