Skip to content

Instantly share code, notes, and snippets.

@tyrm
Created March 30, 2022 20:28
Show Gist options
  • Save tyrm/7fd8bdab077d65d7789fda607149c7d3 to your computer and use it in GitHub Desktop.
Save tyrm/7fd8bdab077d65d7789fda607149c7d3 to your computer and use it in GitHub Desktop.
mastodon build
export DOCKER_CLI_EXPERIMENTAL=enabled
IMAGE_NAME=tyrm/mastodon
sed -i 's/install -g yarn/install -g --unsafe-perm yarn/g' Dockerfile
echo $DIO_PASS | docker login --username $DIO_USER --password-stdin
docker buildx build --platform linux/arm64,linux/amd64 -t $IMAGE_NAME:$BUILD . --push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment