codex / dockerfile
CodeXDevloper's picture
Create dockerfile
07f6ef2 verified
Raw History Blame
280 Bytes
# Dockerfile 1 - Basic Flask API
FROM python:3.9-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app.py .
# Expose port
EXPOSE 5000
# Run the application
CMD ["python", "app.py"]