smart-line-bot / Dockerfile
Smiel2's picture
Upload Dockerfile with huggingface_hub
0dfb836 verified
Raw
History Blame Contribute Delete
454 Bytes
# Minimal Dockerfile for HF Spaces - quick startup
FROM python:3.11-slim
# Required for HF Dev Mode
RUN useradd -m -u 1000 user
WORKDIR /app
# Install dependencies
COPY requirements/base.txt ./requirements.txt
RUN pip install --no-cache-dir -r ./requirements.txt
# Copy app structure
COPY app ./app
# Set ownership
COPY --chown=user . /app
USER user
EXPOSE 7860
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]