Team Ai
Apppublic

KrorngAI/image-annotator-object-detection

sourceHugging Facecc-by-3.0updated 11mo agoView on Hugging Face
0likes
Dockerfile20 linesDownload Raw Back to root
1# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.95 6RUN useradd -m -u 1000 user7USER user8ENV PATH="/home/user/.local/bin:$PATH"9 10WORKDIR /app11 12COPY --chown=user ./requirements.txt requirements.txt13RUN pip install --no-cache-dir --upgrade -r requirements.txt14 15COPY --chown=user . /app16 17# create the uploads directory inside the container18RUN mkdir -p /app/images /app/anno19CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]20