fix(assist): remove hardcoded arch

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2024-05-28 18:09:43 +02:00
parent 37f957a0b6
commit 15442db2a8
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
#ARCH can be amd64 or arm64
ARG ARCH=amd64
ARG ARCH
FROM --platform=linux/$ARCH node:20-alpine
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
@ -22,4 +22,4 @@ USER 1001
ADD --chown=1001 https://static.openreplay.com/geoip/GeoLite2-City.mmdb $MAXMINDDB_FILE
ENTRYPOINT ["/sbin/tini", "--"]
CMD npm start
CMD npm start

View file

@ -53,7 +53,7 @@ function build_api() {
[[ $1 == "ee" ]] && {
cp -rf ../ee/assist/* ./
}
docker build -f ./Dockerfile --platform linux/${ARCH} --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/assist:${image_tag} .
docker build -f ./Dockerfile --platform linux/${ARCH} --build-arg ARCH=$ARCH --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/assist:${image_tag} .
cd ../assist
rm -rf ../${destination}