hal / Dockerfile
piclez's picture
feat: add Dockerfile and Hugging Face Spaces config
2bb990a
raw
history blame contribute delete
591 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
espeak-ng \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 hal
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY download_model.py .
RUN python download_model.py
COPY hal_prompt.py main.py ./
COPY static/ ./static/
COPY profile.md ./
RUN mkdir -p /app/data && chown -R hal:hal /app
USER hal
ENV HAL_DATA_DIR=/app/data
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]