-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 706 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 706 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
# Use a base image with Python installed
FROM python:3.9-slim
# Install system dependencies needed for PyQt5 and OpenGL
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
libffi-dev \
libxrender-dev \
libxext-dev \
libx11-dev \
libgl1-mesa-glx \
libxrender1 \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt /app/
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project into the container
COPY . /app/
# Set the command to run the application
CMD ["python", "mode_based.py"]