docker folder

This commit is contained in:
xis 2023-10-31 17:43:01 +01:00
parent be0580582e
commit b8a9c451d4
No known key found for this signature in database
GPG key ID: 803DF32037A66D02
3 changed files with 10 additions and 2 deletions

View file

@ -12,7 +12,7 @@ RUN set -ex; \
; \ ; \
rm -rf /var/lib/apt/lists/*; rm -rf /var/lib/apt/lists/*;
COPY --chmod=775 start.sh /start.sh COPY --chmod=775 ./docker/start.sh /start.sh
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/start.sh"] ENTRYPOINT ["/start.sh"]

View file

@ -1,6 +1,10 @@
#!/bin/bash #!/bin/bash
version=`./gradlew currentVersion | grep "Project version" | awk -F"version: " '{ print $2 }'` dir=$(realpath "$(dirname "$0")")
cd "$dir/../" || exit
version=$(./gradlew currentVersion | grep "Project version" | awk -F"version: " '{ print $2 }')
echo "This will create docker image for version $version." echo "This will create docker image for version $version."
read -p "Continue [y/n]? " -n 1 -r read -p "Continue [y/n]? " -n 1 -r
@ -21,9 +25,13 @@ docker buildx inspect --bootstrap
docker buildx build \ docker buildx build \
--push \ --push \
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \ --platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
--file=./docker/Dockerfile \
--tag=thanek/nextcloud-dlna:$version . --tag=thanek/nextcloud-dlna:$version .
docker buildx build \ docker buildx build \
--push \ --push \
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \ --platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
--file=./docker/Dockerfile \
--tag=thanek/nextcloud-dlna . --tag=thanek/nextcloud-dlna .
cd - || exit