dejanseo commited on
Commit
469bc56
·
verified ·
1 Parent(s): d8dd02e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ git \
7
+ git-lfs \
8
+ && git lfs install \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt ./
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . .
15
+
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH \
18
+ GRADIO_SERVER_NAME=0.0.0.0 \
19
+ GRADIO_SERVER_PORT=7860
20
+
21
+ RUN useradd -m -u 1000 user
22
+ USER user
23
+
24
+ EXPOSE 7860
25
+ CMD ["python", "app.py"]