Skip to content

Commit 8fb5fc3

Browse files
committed
prepare for newer alpine and grass version
1 parent 4c8b9cf commit 8fb5fc3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: docker/actinia-core-alpine/Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ENV GISBASE ""
1515
# GRASS GIS SETUP
1616
COPY --from=grass /usr/local/bin/grass /usr/local/bin/grass
1717
COPY --from=grass /usr/local/grass* /usr/local/grass/
18-
RUN pip install --upgrade pip six grass-session --ignore-installed six
1918
RUN ln -s /usr/local/grass `grass --config path`
2019
RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
2120
pdal --version && \
@@ -30,16 +29,20 @@ FROM build-base as build
3029

3130
COPY . /src/actinia_core
3231
WORKDIR /src/actinia_core
33-
RUN pip install build && python -m build --outdir /build .
32+
RUN apk add py3-build && python -m build --outdir /build .
3433
RUN if [[ -f /build/UNKNOWN* ]];then echo "ERROR - Check actinia-core build";exit 1;fi
3534

3635

3736
FROM requirements as actinia
3837

38+
ENV PATH="/opt/venv/bin:$PATH"
39+
RUN /usr/bin/python -m venv --system-site-packages --without-pip /opt/venv
40+
RUN python -m ensurepip && pip3 install --upgrade pip pep517 wheel
41+
3942
# actinia-core and requirements installation
4043
WORKDIR /build
4144
COPY --from=build /build/*.whl /build/
42-
RUN pip install /build/*
45+
RUN pip3 install /build/*
4346

4447
# Copy actinia config file and start script
4548
COPY docker/actinia-core-alpine/actinia.cfg /etc/default/actinia

0 commit comments

Comments
 (0)