CoolFace
Apppublic

S0L009/Luna-GNN-Scorer-InferenceAPI

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1FROM python:3.102 3# Set up a new user named "user" with user ID 10004RUN useradd -m -u 1000 user5 6# Switch to user7USER user8 9# Set home to the user's home directory10ENV HOME=/home/user \11    PATH=/home/user/.local/bin:$PATH12 13# Set the working directory to /app14WORKDIR /app15 16# Copy the requirements file and install dependencies17COPY --chown=user ./requirements.txt requirements.txt18RUN pip install --no-cache-dir --upgrade -r requirements.txt19 20# Copy the entire project into the container21COPY --chown=user . .22 23# Run the FastAPI app using Uvicorn24CMD ["uvicorn", "scorer:app", "--host", "0.0.0.0", "--port", "7860"]