Joe6636564 commited on
Commit
2d4e0ac
·
verified ·
1 Parent(s): 3aaad69

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +20 -0
dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.10
5
+
6
+ RUN apt-get update && \
7
+ apt-get install -y ffmpeg && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
+ RUN useradd -m -u 1000 user
11
+ USER user
12
+ ENV PATH="/home/user/.local/bin:$PATH"
13
+
14
+ WORKDIR /app
15
+
16
+ COPY --chown=user ./requirements.txt requirements.txt
17
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
+
19
+ COPY --chown=user . /app
20
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]