Files
VerpotJeLot/Dockerfile
2025-05-22 19:52:35 +02:00

26 lines
512 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose the port Flask runs on
EXPOSE 10333
# Set environment variable for Flask
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
# Run the application
CMD ["flask", "run", "--host=0.0.0.0"]