CoolFace
Apppublic

Hammad712/Auth

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1# Base image using Python 3.92FROM python:3.93 4# Create a new user to run the app5RUN useradd -m -u 1000 user6USER user7 8# Set environment variables9ENV PATH="/home/user/.local/bin:$PATH"10 11# Set the working directory12WORKDIR /app13 14# Copy the requirements and install dependencies15COPY --chown=user ./requirements.txt requirements.txt16RUN pip install --no-cache-dir --upgrade -r requirements.txt17 18# Copy the rest of the application19COPY --chown=user . /app20 21# Expose port 7860 for the application22EXPOSE 786023 24# Command to run the FastAPI app using uvicorn25CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]