This commit is contained in:
2025-03-20 10:25:05 +01:00
commit 45bccf468b
13 changed files with 271 additions and 0 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1
FROM python:3.14.0a3-alpine3.21
# Set up environment variables for Python
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Create and set the working directory
WORKDIR /app
# Copy only the requirements file first to leverage Docker caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire application code
# COPY . .
# Expose the port your application will run on
EXPOSE 8080
# Specify the command to run on container start
CMD ["python", "app.py"]