Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions detectors/Dockerfile.hf
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@ RUN if [ "$TARGETARCH" = "ppc64le" ]; then \
PREFIX=/usr/local make -C /openblas install ;\
fi

COPY ./common/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY ./huggingface/requirements.txt .
COPY ./common ./common
COPY ./huggingface/requirements.txt ./huggingface/requirements.txt
COPY ./huggingface/requirements.in ./huggingface/requirements.in
RUN if [ "$TARGETARCH" = "ppc64le" ] || [ "$TARGETARCH" = "s390x" ]; then \
source /opt/rh/gcc-toolset-13/enable ; \
fi && \
pip install --no-cache-dir -r requirements.txt
pip install --no-cache-dir -r ./huggingface/requirements.in

RUN rm -rf /openblas && rm -rf /wheels

Expand All @@ -103,4 +102,4 @@ COPY ./huggingface/detector.py /app
EXPOSE 8000
CMD ["uvicorn", "app:app", "--workers", "4", "--host", "0.0.0.0", "--port", "8000", "--log-config", "/common/log_conf.yaml"]

# gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000
# gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000
9 changes: 4 additions & 5 deletions detectors/Dockerfile.judge
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ RUN microdnf update -y && \

FROM base as builder

COPY ./common/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY ./llm_judge/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./common ./common
COPY ./llm_judge/requirements.txt ./llm_judge/requirements.txt
COPY ./llm_judge/requirements.in ./llm_judge/requirements.in
RUN pip install --no-cache-dir -r ./llm_judge/requirements.in

FROM builder

Expand Down
2 changes: 2 additions & 0 deletions detectors/huggingface/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r ../common/requirements.txt
-r ./requirements.txt
2 changes: 2 additions & 0 deletions detectors/llm_judge/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r ../common/requirements.txt
-r ./requirements.txt