switch to ras-dan-01
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
This commit is contained in:
25
files/Dockerfile
Normal file
25
files/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user