-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0675f38
commit 13ee8c6
Showing
3 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
FROM eclipse-temurin:17-jre | ||
FROM maven:3.9-eclipse-temurin-21 | ||
RUN apt-get update && apt-get install -y --no-install-recommends jq && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY generate.sh openapi-generator-cli.jar openapi.yaml /usr/src/app/ | ||
COPY generate.sh config-openapi.yaml openapi.yaml /usr/src/app/ | ||
|
||
WORKDIR /usr/src/app | ||
RUN bash generate.sh | ||
|
||
FROM python:3.12-slim-bookworm | ||
WORKDIR /usr/src/app | ||
RUN apt-get update && apt-get install -y --no-install-recommends libpq5 && rm -rf /var/lib/apt/lists/* | ||
COPY requirements.txt /usr/src/app/ | ||
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r requirements.txt | ||
RUN pip3 install --root-user-action=ignore --upgrade pip && pip3 install --root-user-action=ignore --no-cache-dir -r requirements.txt | ||
|
||
COPY similarity_service_impl /usr/src/app/cosine_impl | ||
COPY --from=0 /usr/src/app/openapi.yaml /usr/src/app/openapi.yaml | ||
COPY --from=0 /usr/src/app/gen /usr/src/app/gen | ||
COPY similarity_service_impl /usr/src/app/similarity_service_impl | ||
|
||
ENV PYTHONPATH=/usr/src/app/gen | ||
|
||
EXPOSE 8080/tcp | ||
ENTRYPOINT ["/usr/local/bin/waitress-serve"] | ||
CMD ["--port=8080", "cosine_impl.app:app"] | ||
CMD ["--port=8080", "similarity_service_impl.app:app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,4 @@ Flask < 2.3 | |
waitress >= 3.0.0 | ||
|
||
matchms >= 0.27.0 | ||
psycopg[pool] >= 3.0.0 | ||
numpy | ||
watchdog |