R1 / Dockerfile
Badger123t's picture
Create Dockerfile
a2a4380 verified
raw
history blame contribute delete
375 Bytes
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 80
# Run the application
CMD ["python", "app.py"]