CoolFace
Apppublic

AIMaster7/AAZ

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.11-slim3 4# Set environment variables5ENV PYTHONDONTWRITEBYTECODE=16ENV PYTHONUNBUFFERED=17 8# Set the working directory in the container9WORKDIR /app10 11# Install system dependencies (if any)12# RUN apt-get update && apt-get install -y <dependencies>13 14# Copy requirements.txt first to leverage Docker cache15COPY requirements.txt .16 17# Install Python dependencies18RUN pip install --no-cache-dir -r requirements.txt19 20# Copy the application code21COPY app/ /app/22 23# Expose the port FastAPI is running on24EXPOSE 300025 26# Command to run the application27CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"]