makhtar7186 commited on
Commit
5cdd123
·
verified ·
1 Parent(s): 14196b1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -25
Dockerfile CHANGED
@@ -1,25 +1,23 @@
1
- FROM python:3.9
2
-
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV PATH="/home/user/.local/bin:$PATH"
6
-
7
- # Set working directory
8
- WORKDIR /app
9
-
10
- # Copy .env file
11
- COPY .env .
12
-
13
- RUN python -m pip install --upgrade pip
14
-
15
- # Copy requirements and install dependencies
16
-
17
- COPY --chown=user ./requirements2.txt requirements2.txt
18
- RUN pip install --no-cache-dir -r requirements2.txt
19
-
20
-
21
- COPY telegram_bot.py .
22
- # Expose any ports if needed (Telegram bot uses polling, no ports needed)
23
-
24
- COPY --chown=user . /app
25
- CMD ["python", "telegram_bot.py"]
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+
11
+ RUN python -m pip install --upgrade pip
12
+
13
+ # Copy requirements and install dependencies
14
+
15
+ COPY --chown=user ./requirements2.txt requirements2.txt
16
+ RUN pip install --no-cache-dir -r requirements2.txt
17
+
18
+
19
+ COPY telegram_bot.py .
20
+ # Expose any ports if needed (Telegram bot uses polling, no ports needed)
21
+
22
+ COPY --chown=user . /app
23
+ CMD ["python", "telegram_bot.py"]