amit01Xindus commited on
Commit
8096f1a
·
verified ·
1 Parent(s): fca0b38

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +6 -10
dockerfile CHANGED
@@ -1,10 +1,8 @@
1
- # Use Python 3.12 slim base
2
  FROM python:3.12-slim
3
 
4
- # Avoid interactive prompts during apt installs
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
- # Install Chrome & dependencies
8
  RUN apt-get update && apt-get install -y \
9
  wget gnupg unzip curl \
10
  fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \
@@ -14,14 +12,12 @@ RUN apt-get update && apt-get install -y \
14
  xdg-utils chromium chromium-driver \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # Install Python dependencies
18
- RUN pip install --no-cache-dir selenium webdriver_manager
19
-
20
- # Set working directory
21
  WORKDIR /app
22
 
23
- # Copy your script into the container
 
 
24
  COPY . /app
25
 
26
- # By default, run your script
27
- CMD ["python", "infiplex.py"]
 
 
1
  FROM python:3.12-slim
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # Install Chromium & ChromeDriver
6
  RUN apt-get update && apt-get install -y \
7
  wget gnupg unzip curl \
8
  fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \
 
12
  xdg-utils chromium chromium-driver \
13
  && rm -rf /var/lib/apt/lists/*
14
 
 
 
 
 
15
  WORKDIR /app
16
 
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
  COPY . /app
21
 
22
+ # Start Flask server
23
+ CMD ["python", "app.py"]