Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/OPT-928] to dev #309

Merged
merged 6 commits into from
Sep 25, 2023
Merged
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
20 changes: 16 additions & 4 deletions deployment/Dockerfile.application
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-alpine
FROM python:3.8-alpine AS startleft-base

WORKDIR /usr/src/app

Expand All @@ -15,9 +15,21 @@ COPY . .

RUN pip install .

RUN rm -r ../app/*

# Remove not needed dependencies for runtime
RUN apk del git geos-dev re2-dev py3-pybind11-dev
FROM python:3.8-alpine

WORKDIR /app

RUN apk update && \
apk add libmagic && \
apk add re2 && \
apk add graphviz && \
apk add lapack && \
apk add cblas && \
apk add geos

COPY --from=startleft-base /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages

COPY --from=startleft-base /usr/local/bin/startleft /usr/local/bin/startleft

CMD ["startleft", "server", "--host", "0.0.0.0"]
2 changes: 1 addition & 1 deletion docs/integration/Quickstart-Guide-for-Integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ git checkout release/1.5.0

Now, we can create the StartLeft image:
```shell
docker build . -f deployment/Dockerfile.docs.application.application -t startleft
docker build . -f deployment/Dockerfile.application -t startleft
```

And, finally, we can run the docker container for the image we have just generated. Notice that you can select the
Expand Down