-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 676 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (25 loc) · 676 Bytes
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
# Use a lightweight base image
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
bash \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Create a directory for debugging
RUN mkdir /app/debug
# Copy the requirements file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install chromium for playwright
RUN playwright install-deps
RUN playwright install chromium
# Copy the rest of the application code
COPY . .
# Make the start script executable
RUN chmod +x start.sh
# Expose the port the app runs on
EXPOSE 5000
CMD ["bash", "./start.sh"]