verbo-backend / Dockerfile
axnand's picture
edited the dockerfile and .dockerignore and .gitignore
dc54d81
raw
history blame
392 Bytes
FROM python:3.11-slim
WORKDIR /app
# Set environment variables
ENV HF_HOME=/tmp/huggingface \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
RUN mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
EXPOSE 8000
CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "8000"]