CoolFace
Apppublic

yeswanth0212/token_system

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
Dockerfile21 linesDownload Raw Back to root
1FROM python:3.10-slim2 3WORKDIR /app4 5# Install dependencies6COPY requirements.txt .7RUN pip install --no-cache-dir -r requirements.txt8 9# Copy backend and frontend folders10COPY backend/ ./backend/11COPY frontend/ ./frontend/12 13# Set working directory to backend so uvicorn can find main:app and imports work14WORKDIR /app/backend15 16# Expose the standard Hugging Face port17EXPOSE 786018 19# Command to run the application (Hugging Face passes the port via $PORT but defaults to 7860)20CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]21