prompt_analyzer / Dockerfile
abhinavvvvv's picture
Deploy BERT Scorer
a3ebb4f
# Use Python 3.9
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all files (Model + Code)
COPY . .
# Create a user to run the app (Security requirement for HF)
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# Run the app on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]