Skip to content

Commit 536778d

Browse files
authored
Fix telemetry for imagecustomizer golden container. (#15060)
1 parent 3f54bb1 commit 536778d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pipelines/containerSourceData/imagecustomizer/Dockerfile-imagecustomizer

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Licensed under the MIT License.
33

44
ARG BASE_IMAGE
5-
ARG TARGETARCH
6-
ARG AZ_MON_CONN_STR
75

86
FROM $BASE_IMAGE
97

8+
ARG TARGETARCH
9+
ARG AZ_MON_CONN_STR
1010
ENV AZURE_MONITOR_CONNECTION_STRING=${AZ_MON_CONN_STR}
1111

1212
@INCLUDE_MAIN_RUN_INSTRUCTION@
@@ -24,7 +24,7 @@ RUN tdnf update -y && \
2424
tdnf clean all
2525

2626
# Create virtual environment and install Python dependencies for telemetry
27-
RUN python3 -m venv /opt/telemetry-venv
28-
RUN /opt/telemetry-venv/bin/pip install --no-cache-dir -r /usr/lib/imagecustomizer/telemetry-requirements.txt
27+
RUN python3 -m venv /usr/lib/imagecustomizer/telemetry-venv
28+
RUN /usr/lib/imagecustomizer/telemetry-venv/bin/pip install --no-cache-dir -r /usr/lib/imagecustomizer/telemetry-requirements.txt
2929

3030
ENTRYPOINT ["/usr/lib/imagecustomizer/entrypoint.sh"]

0 commit comments

Comments
 (0)