CoolFace
Apppublic

HamzaCodesForU/exif-engine

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
Dockerfile15 linesDownload Raw Back to root
1FROM python:3.102 3# Set up a new user to avoid running as root (HF requirement)4RUN useradd -m -u 1000 user5USER user6ENV PATH="/home/user/.local/bin:$PATH"7 8WORKDIR /app9COPY --chown=user . /app10 11# Install the dependencies12RUN pip install --no-cache-dir -r requirements.txt13 14# Start the FastAPI server on port 7860 (HF's default port)15CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]