Files
PythonFlaskAusgaben/files/Dockerfile
jonnybravo c0cfe686d1
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
switch to ras-dan-01
2025-03-31 15:21:28 +02:00

26 lines
559 B
Docker

# 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"]