Skip to content

Commit 9e18e97

Browse files
author
Olesia Solonko
committed
add venv installation in backend Dockerfile, to run build on azure agent
1 parent 8b0f62b commit 9e18e97

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pygeoapi/docker/Dockerfile.pygeoapi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apt-get update \
2121
zlib1g-dev \
2222
libprotobuf-dev \
2323
protobuf-compiler \
24+
python3-venv \
2425
&& git clone https://github.com/mapbox/tippecanoe.git /tmp/tippecanoe \
2526
&& cd /tmp/tippecanoe \
2627
&& make -j \
@@ -30,6 +31,10 @@ RUN apt-get update \
3031
&& apt-get clean \
3132
&& rm -rf /var/lib/apt/lists/*
3233

34+
RUN python3 -m venv /opt/venv \
35+
&& /opt/venv/bin/python -m pip install --upgrade pip setuptools wheel
36+
ENV PATH="/opt/venv/bin:$PATH"
37+
3338
# Install Application Insights for Python
3439
RUN pip install opencensus-ext-azure opencensus-ext-flask opencensus-ext-requests
3540

0 commit comments

Comments
 (0)