DeMaking commited on
Commit
41763e5
·
verified ·
1 Parent(s): 168321d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -6,6 +6,7 @@ ENV PYTHONUNBUFFERED=1
6
  ENV PYTHONIOENCODING=utf-8
7
 
8
  RUN useradd -m -u 1000 user
 
9
  # Set working directory
10
  WORKDIR /app
11
 
@@ -16,8 +17,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
  # Copy the app files
17
  COPY --chown=user . /app
18
 
19
- # Open the relevant port
20
- EXPOSE 7860
21
 
22
- # Run the app
23
- CMD python3 app.py
 
6
  ENV PYTHONIOENCODING=utf-8
7
 
8
  RUN useradd -m -u 1000 user
9
+
10
  # Set working directory
11
  WORKDIR /app
12
 
 
17
  # Copy the app files
18
  COPY --chown=user . /app
19
 
20
+ # Open the relevant ports
21
+ EXPOSE 7860 5000
22
 
23
+ # Run both Flask API and Telegram bot
24
+ CMD python3 app.py & python3 telegram_bot.py