Skip to content

Commit 2c1ba09

Browse files
committed
try to use venv
1 parent 1cfaa3d commit 2c1ba09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ COPY --from=build opengrok.tar.gz /opengrok.tar.gz
8484
RUN mkdir -p /opengrok /opengrok/etc /opengrok/data /opengrok/src && \
8585
tar -zxvf /opengrok.tar.gz -C /opengrok --strip-components 1 && \
8686
rm -f /opengrok.tar.gz && \
87-
python3 -m pip install --no-cache-dir /opengrok/tools/opengrok-tools.tar.gz && \
88-
python3 -m pip install --no-cache-dir Flask Flask-HTTPAuth waitress # for /reindex REST endpoint handled by start.py
87+
python3 -m venv /venv
88+
ENV PATH=/venv/bin:$PATH
89+
RUN /venv/bin/python3 -m pip install --no-cache-dir /opengrok/tools/opengrok-tools.tar.gz && \
90+
/venv/bin/python3 -m pip install --no-cache-dir Flask Flask-HTTPAuth waitress # for /reindex REST endpoint handled by start.py
8991

9092
COPY --from=build /mvn/VERSION /opengrok/VERSION
9193

0 commit comments

Comments
 (0)