zkt25/app/Dockerfile
2025-03-16 10:21:05 +00:00

19 lines
368 B
Docker

# Basic image from Docker Hub
FROM python:3.9-slim
# Container working directory settings
WORKDIR /app
# Copy the requirements file and install Python
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy application files to the image
COPY app.py .
# Expose port 5000 for the Flask application
EXPOSE 5000
# Program to run
CMD ["python", "app.py"]