Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IL-421 expose docker port to localhost
Browse files Browse the repository at this point in the history
FelixFehseTNG committed Apr 10, 2024
1 parent f6b4ad8 commit 215bd8e
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/examples/issue_classification_user_journey/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Binary file modified src/examples/issue_classification_user_journey/requirements.txt
Binary file not shown.

0 comments on commit 215bd8e

Please sign in to comment.