Opera8 commited on
Commit
7422d2d
·
verified ·
1 Parent(s): 2cbe0d3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y git ffmpeg && \
5
+ rm -rf /var/lib/apt/lists/*
6
+
7
+ RUN useradd -m -u 1000 user
8
+
9
+ USER user
10
+
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
+ WORKDIR /app
15
+
16
+ CMD ["/bin/bash", "-c", "git clone https://$GITHUB_TOKEN@github.com/Hamed744/Chatfly.git . && pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt && python app.py"]