Skip to content

Commit

Permalink
Legacy Docker: pin ubuntu version (#6028)
Browse files Browse the repository at this point in the history
  • Loading branch information
onetechnical authored Jun 12, 2024
1 parent 9191b1b commit dbe60ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/releases/build_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ case $NETWORK in
esac

IFS='' read -r -d '' DOCKERFILE <<EOF
FROM ubuntu
FROM ubuntu:22.04
RUN apt-get update && apt-get -y dist-upgrade && apt-get install -y ca-certificates curl --no-install-recommends && \
curl --silent -L https://github.com/algorand/go-algorand-doc/blob/master/downloads/installers/linux_amd64/install_master_linux-amd64.tar.gz?raw=true | tar xzf - && \
Expand All @@ -91,7 +91,7 @@ then
CACHED_ARG='--no-cache'
fi

if ! echo "$DOCKERFILE" | docker build $CACHED_ARG -t "algorand/$IMAGE_NAME:$TAGNAME" -
if ! echo "$DOCKERFILE" | docker build --platform=linux/amd64 $CACHED_ARG -t "algorand/$IMAGE_NAME:$TAGNAME" -
then
echo -e "\n$RED_FG[$0]$END_FG_COLOR The algorand/$IMAGE_NAME:$TAGNAME image could not be built."
exit 1
Expand Down

0 comments on commit dbe60ee

Please sign in to comment.