5
5
# #################################################################################################################################################
6
6
# STARTING WITH ALL THE SAP TOOLS FIRST
7
7
# #################################################################################################################################################
8
- FROM alpine:3 AS base
8
+ FROM --platform=linux/amd64 alpine:3 AS base
9
9
ENV ARCH=linux-amd64
10
10
ENV TOOLS_URL=tools.hana.ondemand.com
11
11
ENV CPCLI_URL=cpcli.cf.eu10.hana.ondemand.com
@@ -20,7 +20,7 @@ RUN echo "http://dl-4.alpinelinux.org/alpine/latest-stable/community" >> /etc/ap
20
20
# #########################################################################################
21
21
# Retrieve the CloudFoundry CLI
22
22
# #########################################################################################
23
- FROM cloudfoundry/cli:8.6.1 as cf_cli
23
+ FROM --platform=linux/amd64 cloudfoundry/cli:8.6.1 as cf_cli
24
24
25
25
# #########################################################################################
26
26
# # Retrieve the SAP btp CLI
@@ -84,7 +84,7 @@ RUN curl -fsSL --url "https://git.sr.ht/~gpanders/ijq/refs/download/v${VER_IJQ}/
84
84
# #######################################################################################
85
85
# Bring the tools together into the final base stage
86
86
# #######################################################################################
87
- FROM alpine:3 as tools
87
+ FROM --platform=linux/amd64 alpine:3 as tools
88
88
WORKDIR /usr/local/bin
89
89
COPY --from=cf_cli /usr/local/bin/cf8 .
90
90
COPY --from=btp_cli /tmp/tools/ .
@@ -97,7 +97,7 @@ ARG BTPSA_VERSION_GIT_ARG=default
97
97
# #################################################################################################################################################
98
98
# Now putting all pieces together
99
99
# #################################################################################################################################################
100
- FROM python:3.10-alpine3.16 AS final_build
100
+ FROM --platform=linux/amd64 python:3.10-alpine3.16 AS final_build
101
101
ENV USERNAME=user
102
102
ENV HOME_FOLDER /home/$USERNAME
103
103
ENV LIBS_FOLDER $HOME_FOLDER/libs
@@ -132,6 +132,7 @@ RUN adduser \
132
132
nodejs \
133
133
npm \
134
134
sudo \
135
+ libc6-compat \
135
136
&& pip install --no-cache-dir -r /tmp/pip-tmp/requirements.txt \
136
137
&& rm -rf /tmp/pip-tmp \
137
138
# # Set the right timezone in the container image
@@ -166,7 +167,7 @@ COPY --chown=root:root --from=tools /usr/local/bin/fx /usr/local/bin
166
167
COPY --chown=root:root --from=tools /usr/local/bin/ijq /usr/local/bin
167
168
168
169
# # Install the CF plugin for deploying MTAs on Cloudfoundry
169
- RUN cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.linux32
170
+ RUN cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.linux64
170
171
171
172
# # Install krew and the oidc-login plugin
172
173
RUN OS="$(uname | tr '[:upper:]' '[:lower:]')" \
0 commit comments