File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,9 @@ RUN cmake .. \
4949 -DWITH_PYTHON=1 \
5050 -DWITH_MSSQL2008=0
5151
52+ RUN cmake --build . --target pythonmapscript-wheel
5253RUN ninja install
5354
54- # Run the make command for pythonmapscript-wheel
55- # RUN cmake --build . --target pythonmapscript-wheel
56-
5755FROM gdal AS runner
5856LABEL maintainer=
"[email protected] " 5957SHELL ["/bin/bash" , "-o" , "pipefail" , "-cux" ]
@@ -104,13 +102,18 @@ EXPOSE 8080
104102COPY --from=builder /usr/local/bin /usr/local/bin/
105103COPY --from=builder /usr/local/lib /usr/local/lib/
106104COPY --from=builder /usr/local/share/mapserver /usr/local/share/mapserver/
105+ # copy the mapscript wheel
106+ COPY --from=builder /src/build/src/mapscript/python/dist /usr/local/share/mapserver/python/
107107COPY --from=builder /src/share/ogcapi/templates/html-bootstrap /usr/local/share/mapserver/ogcapi/templates/html-bootstrap/
108108COPY --from=builder /src/share/ogcapi/templates/html-plain /usr/local/share/mapserver/ogcapi/templates/html-plain/
109109COPY --from=builder /src/share/ogcapi/templates/html-index-bootstrap /usr/local/share/mapserver/ogcapi/templates/html-index-bootstrap/
110110COPY --from=builder /src/share/ogcapi/templates/html-index-plain /usr/local/share/mapserver/ogcapi/templates/html-index-plain/
111111
112112COPY runtime /
113113
114+ RUN apt-get install --no-install-recommends python3-pip --assume-yes
115+ RUN pip install --break-system-packages --no-index --find-links=/usr/local/share/mapserver/python mapscript
116+
114117RUN ldconfig
115118
116119ENV MS_DEBUGLEVEL=0 \
You can’t perform that action at this time.
0 commit comments