File size: 322 Bytes
d17ebad | 1 2 3 4 5 6 7 8 9 10 11 | FROM python:3.11-slim-bookworm
RUN useradd --create-home --uid 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user:user . .
RUN chmod -R a+rx /app/weights/bin
USER user
ENV OMP_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2
CMD ["python", "/app/predict.py", "--help"]
|