diff --git a/Dockerfile b/Dockerfile index a1b1f6f1..75c4ae2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS && \ docker-php-ext-enable swoole && \ apk del .phpize-deps + # Install shlink FROM base as builder COPY . . diff --git a/docker/README.md b/docker/README.md index e17e570e..199dc6e2 100644 --- a/docker/README.md +++ b/docker/README.md @@ -263,7 +263,13 @@ Once created just run shlink with the volume: docker run --name shlink -p 8080:8080 -v ${PWD}/my/config/dir:/etc/shlink/config/params shlinkio/shlink:stable ``` -## Multi instance considerations +## Multi-architecture + +Starting on v2.3.0, Shlink's docker image is built for multiple architectures. + +The only limitation is that images for architectures other than `amd64` will not have support for Microsoft SQL databases, since there are no official binaries. + +## Multi-instance considerations These are some considerations to take into account when running multiple instances of shlink. diff --git a/docker/build b/docker/build index 22580702..4cc7f56a 100755 --- a/docker/build +++ b/docker/build @@ -19,13 +19,13 @@ if [[ ! -z $TRAVIS_TAG ]]; then [[ $TRAVIS_TAG != *"alpha"* && $TRAVIS_TAG != *"beta"* ]] && TAGS="${TAGS} -t shlinkio/shlink:stable" docker buildx build --push \ - --build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \ - --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ + --build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \ + --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ ${TAGS} . # If build branch is develop, build latest (on master, when there's no tag, do not build anything) elif [[ "$TRAVIS_BRANCH" == 'develop' ]]; then docker buildx build --push \ - --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ - -t shlinkio/shlink:latest . + --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ + -t shlinkio/shlink:latest . fi