Skip to content

Commit 34f1ccd

Browse files
committed
fix dockerfile
Signed-off-by: hwassman <[email protected]>
1 parent 1b24d65 commit 34f1ccd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ RUN echo "the HTTP/S protocol is set to $PROTOCOL" && \
9090
echo "the PERFMONPORT port is set to $SERVERPORT" && \
9191
echo "the pmcollector server ip is set to $SERVER" && \
9292
echo "the log will use $LOGPATH"
93-
93+
9494
RUN if [ $(expr "$BASE" : '.*python.*') -eq 0 ]; then \
95-
yum install -y python39 python3-pip; \
96-
if [ "$BUILD_ENV" = "build_test" ]; then \
97-
python3 -m pip install pip-tools && \
98-
python3 -m piptools compile /root/requirements_ubi.in --output-file /root/requirements_ubi9.txt && \
99-
echo "Compiled python packages: $(cat /root/requirements_ubi9.txt)"; fi && \
100-
python3 -m pip install -r /root/requirements_ubi9.txt && \
101-
echo "Installed python version: $(python3 -V)" && \
102-
echo "Installed python packages: $(python3 -m pip list)"; else \
103-
echo "Already using python container as base image. No need to install it." && \
104-
python3 -m pip install -r /root/requirements.in && \
105-
echo "Installed python packages: $(python3 -m pip list)"; fi
95+
yum install -y python39 python3-pip; \
96+
if [ "$BUILD_ENV" = "test" ]; then \
97+
python3 -m pip install pip-tools && \
98+
python3 -m piptools compile /root/requirements_ubi.in --output-file /root/requirements_ubi9.txt && \
99+
echo "Compiled python packages: $(cat /root/requirements_ubi9.txt)"; fi && \
100+
python3 -m pip install -r /root/requirements_ubi9.txt && \
101+
echo "Installed python version: $(python3 -V)" && \
102+
echo "Installed python packages: $(python3 -m pip list)"; else \
103+
echo "Already using python container as base image. No need to install it." && \
104+
python3 -m pip install -r /root/requirements.in && \
105+
echo "Installed python packages: $(python3 -m pip list)"; fi
106106

107107
USER root
108108

0 commit comments

Comments
 (0)