-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from iriusrisk/release/1.28.0
release/1.28.0 to main
- Loading branch information
Showing
5 changed files
with
18 additions
and
21 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
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
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,32 +1,29 @@ | ||
FROM python:3.8-alpine AS startleft-base | ||
FROM python:3.11-alpine AS startleft-base | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk add git && \ | ||
apk add geos && \ | ||
apk add graphviz-dev | ||
|
||
RUN apk --no-cache add lapack libstdc++ libmagic geos-dev && \ | ||
apk --no-cache add --virtual .builddeps g++ gcc gfortran musl-dev lapack-dev re2 re2-dev py3-pybind11-dev | ||
apk --no-cache add geos geos-dev git graphviz-dev lapack libmagic libstdc++ && \ | ||
apk --no-cache add --virtual .builddeps g++ gcc gfortran lapack-dev musl-dev py3-pybind11-dev re2 re2-dev | ||
|
||
COPY . . | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN pip install . | ||
RUN pip install --upgrade pip && pip install . | ||
|
||
|
||
FROM python:3.8-alpine | ||
FROM python:3.11-alpine | ||
|
||
WORKDIR /app | ||
|
||
RUN apk update && \ | ||
apk add libmagic re2 lapack cblas geos graphviz-dev | ||
apk --no-cache add cblas geos graphviz-dev lapack libmagic re2 && \ | ||
adduser --disabled-password --no-create-home startleft | ||
|
||
COPY --from=startleft-base /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages | ||
COPY --from=startleft-base /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages | ||
|
||
COPY --from=startleft-base /usr/local/bin/startleft /usr/local/bin/startleft | ||
|
||
USER startleft | ||
|
||
CMD ["startleft", "server", "--host", "0.0.0.0"] |
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