Rid3 commited on
Commit
4f85ca3
·
verified ·
1 Parent(s): 7b0602d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ gcc \
7
+ g++ \
8
+ build-essential \
9
+ ffmpeg \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ COPY bot.py .
16
+ COPY firebase_admin.json .
17
+
18
+ RUN useradd -m -u 1000 botuser && chown -R botuser:botuser /app
19
+ USER botuser
20
+
21
+ CMD ["python", "bot.py"]