latch_candidates / Dockerfile
aursalan's picture
Added files
33afddb
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
# Create a non-root user (security best practice for HF Spaces)
RUN useradd -m -u 1000 user
USER user
# Run the application on port 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]