-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
27 lines (19 loc) · 620 Bytes
/
Containerfile
File metadata and controls
27 lines (19 loc) · 620 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
# Use an official Python runtime as the base image
FROM python:3.12-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set the working directory in the container
WORKDIR /app
# Copy the entire project into the container
COPY .. .
# Copy the requirements file into the container
COPY ../requirements-linux.txt .
# Copy the container configuration ini file
COPY container.ini /app/config.ini
# Install dependencies
RUN pip install --no-cache-dir -r requirements-linux.txt
# Expose the port the app runs on
EXPOSE 5000
# Command to run the application
CMD ["python", "main.py"]