Spaces:
Sleeping
Sleeping
ShobhitKori
commited on
Commit
·
4902930
1
Parent(s):
caff3cc
Updated Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
# Use Python image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
RUN useradd -m -u 1000 user
|
|
|
|
|
|
|
| 7 |
WORKDIR /app
|
| 8 |
# Expose the port Hugging Face expects
|
| 9 |
EXPOSE 7860
|
|
|
|
| 1 |
# Use Python image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
| 5 |
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
+
USER user
|
| 8 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
| 9 |
WORKDIR /app
|
| 10 |
# Expose the port Hugging Face expects
|
| 11 |
EXPOSE 7860
|