tejaredddy's picture
flaskfiles
82bf8c3 verified
Raw History Blame Contribute Delete
365 Bytes
# Use lightweight Python image
FROM python:3.10-slim
# Set working directory inside container
WORKDIR /app
# Copy requirements file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose Flask port
EXPOSE 5000
# Run Flask application
CMD ["python", "app.py"]