NsfwExtension / Dockerfile
Ravi Pandey
Docker deploy
fd1bd47
raw
history blame
No virus
467 Bytes
FROM python:3.9
# Set working directory
WORKDIR /code
# Copy requirements file and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Set environment variable for Transformers cache
ENV HF_HOME=/tmp/transformers_cache
# Copy the rest of the application code
COPY . .
# Command to run your application
CMD ["uvicorn", "server.caption_server:app", "--reload", "--port", "8000"]