text-analyzer-llm / Dockerfile
Polarium's picture
Application pushed to huggingface
70ca8e2
raw
history blame contribute delete
423 Bytes
FROM python:3.10-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Copy requirements and install Python dependencies
COPY --chown=user ./requirements.txt requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Run the application
COPY --chown=user . /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]