TLM_AI / Dockerfile
ItamarMordo's picture
Create Dockerfile
c701f6f verified
Raw History Blame Contribute Delete
486 Bytes
FROM python:3.9
# Set the working directory
WORKDIR /code
# Copy requirements and install
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all your files (server.py, database.json)
COPY . /code
# Create a writable directory for the database (Hugging Face specific)
RUN chmod 777 /code
# Start the server on port 7860 (Hugging Face standard)
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]