diff --git a/deployment/Dockerfile.application b/deployment/Dockerfile.application index f581ebf7..f5a8476e 100644 --- a/deployment/Dockerfile.application +++ b/deployment/Dockerfile.application @@ -1,4 +1,4 @@ -FROM python:3.8-alpine +FROM python:3.8-alpine as builder WORKDIR /usr/src/app @@ -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=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages + +COPY --from=builder /usr/local/bin/startleft /usr/local/bin/startleft CMD ["startleft", "server", "--host", "0.0.0.0"] diff --git a/docs/integration/Quickstart-Guide-for-Integrations.md b/docs/integration/Quickstart-Guide-for-Integrations.md index cb6d9789..3b354899 100644 --- a/docs/integration/Quickstart-Guide-for-Integrations.md +++ b/docs/integration/Quickstart-Guide-for-Integrations.md @@ -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