CoolFace
Apppublic

ShabazKnowde/knowledge-text-corrector-api

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1# Use the official Python 3.10.9 image2FROM python:3.10.93 4# Create a directory for the cache with write permissions5RUN mkdir /cache && chmod 777 /cache6 7# Copy the current directory contents into the container at .8COPY . .9 10# Set the working directory to /11WORKDIR /12 13# Set the TRANSFORMERS_CACHE environment variable to the created cache directory14ENV TRANSFORMERS_CACHE=/cache15 16# Install requirements.txt 17RUN pip install --no-cache-dir --upgrade -r /requirements.txt18 19# Start the FastAPI app on port 7860, the default port expected by Spaces20CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]21