Skip to content

Commit 098cbd3

Browse files
author
Muhammad Naufal Andika Natsir Putra
committed
chore: reorder install yq command in Dockerfile
1 parent 547284c commit 098cbd3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

engines/pyfunc-ensembler-job/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ RUN apt-get update --allow-releaseinfo-change-suite -q && \
4444
wget \
4545
&& apt-get clean
4646

47+
# Install yq
48+
ENV YQ_VERSION=v4.42.1
49+
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && \
50+
chmod +x /usr/bin/yq
51+
4752
# Install gcloud SDK
4853
ENV PATH=$PATH:/google-cloud-sdk/bin
4954
ARG GCLOUD_VERSION=410.0.0
@@ -54,11 +59,6 @@ RUN wget -qO- \
5459
# Install aws CLI
5560
RUN wget -q https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip && unzip awscli-exe-linux-x86_64.zip && ./aws/install
5661

57-
# Install yq
58-
ENV YQ_VERSION=v4.42.1
59-
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && \
60-
chmod +x /usr/bin/yq
61-
6262
COPY ./entrypoint.sh /opt/entrypoint.sh
6363

6464
# Configure non-root user

engines/pyfunc-ensembler-service/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ ARG CONDA_ENV_NAME
88
ENV APP_NAME=$APP_NAME
99
ENV CONDA_ENV_NAME=$CONDA_ENV_NAME
1010

11+
# Install yq
12+
ENV YQ_VERSION=v4.42.1
13+
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && \
14+
chmod +x /usr/bin/yq
15+
1116
# Install gcloud SDK
1217
RUN wget -qO- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-367.0.0-linux-x86_64.tar.gz | tar xzf -
1318
ENV PATH=$PATH:/google-cloud-sdk/bin
1419

1520
# Install aws CLI
1621
RUN wget -q https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip && unzip awscli-exe-linux-x86_64.zip && ./aws/install
1722

18-
# Install yq
19-
ENV YQ_VERSION=v4.42.1
20-
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && \
21-
chmod +x /usr/bin/yq
22-
2323
COPY . .
2424
COPY ./temp-deps/sdk ./../../sdk
2525
COPY process_conda_env.sh /bin/process_conda_env.sh

0 commit comments

Comments
 (0)