diff --git a/src/examples/issue_classification_user_journey/Dockerfile b/src/examples/issue_classification_user_journey/Dockerfile index d265295a7..afd210e8e 100644 --- a/src/examples/issue_classification_user_journey/Dockerfile +++ b/src/examples/issue_classification_user_journey/Dockerfile @@ -9,11 +9,10 @@ COPY requirements.txt /app/requirements.txt RUN python3 -m venv /app/venv ENV PATH="/app/venv/bin:$PATH" -RUN echo $(cat /run/secrets/GITHUB_TOKEN) - RUN pip install --upgrade pip RUN --mount=type=secret,id=GITHUB_TOKEN \ - GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) pip install -r /app/requirements.txt + GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) \ + pip install -r /app/requirements.txt FROM ubuntu:latest as runtime @@ -28,4 +27,7 @@ COPY --from=builder /app /app COPY main.py /app/main.py ENV PATH="/app/venv/bin:$PATH" -ENTRYPOINT [ "uvicorn", "app.main:app" ] +ENTRYPOINT [ "uvicorn", "--host", "0.0.0.0", "--port", "80", "app.main:app" ] +# run with +# docker run -p 8000:80 classification-service:local +# you can then access the server on localhost:8000 \ No newline at end of file diff --git a/src/examples/issue_classification_user_journey/requirements.txt b/src/examples/issue_classification_user_journey/requirements.txt index e1fc1667d..e1fa0186a 100644 Binary files a/src/examples/issue_classification_user_journey/requirements.txt and b/src/examples/issue_classification_user_journey/requirements.txt differ