diff --git a/deployment/Dockerfile.application b/deployment/Dockerfile.application index f5a8476e..2bb190a1 100644 --- a/deployment/Dockerfile.application +++ b/deployment/Dockerfile.application @@ -1,4 +1,4 @@ -FROM python:3.8-alpine as builder +FROM python:3.8-alpine AS startleft-base WORKDIR /usr/src/app @@ -26,10 +26,10 @@ RUN apk update && \ apk add graphviz && \ apk add lapack && \ apk add cblas && \ - apk add geos \ + apk add geos -COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages +COPY --from=startleft-base /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 +COPY --from=startleft-base /usr/local/bin/startleft /usr/local/bin/startleft CMD ["startleft", "server", "--host", "0.0.0.0"]