-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (43 loc) · 1.38 KB
/
Dockerfile
File metadata and controls
52 lines (43 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -------------------------------------------------------------
# Programmer : Ebrahim Shafiei (EbraSha)
# Email : Prof.Shafiei@Gmail.com
# -------------------------------------------------------------
# Use an official Python base image
FROM python:3.11-slim
# Set environment variables to avoid user interaction during installation
ENV DEBIAN_FRONTEND=noninteractive
# Set work directory inside container
WORKDIR /app
# Install dependencies and Google Chrome
RUN apt-get update && apt-get install -y \
wget \
gnupg \
ca-certificates \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libdbus-1-3 \
libgdk-pixbuf2.0-0 \
libnspr4 \
libnss3 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
xdg-utils \
--no-install-recommends && \
wget -O google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt-get install -y ./google-chrome.deb && \
rm google-chrome.deb && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy all project files to the container
COPY . /app
# Install required Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Expose the default port (if the app uses Flask or similar)
EXPOSE 8000
# Run the main script
CMD ["python", "abdal-web-intelligence-analyzer.py"]