docker folder
This commit is contained in:
parent
be0580582e
commit
b8a9c451d4
3 changed files with 10 additions and 2 deletions
|
@ -12,7 +12,7 @@ RUN set -ex; \
|
|||
; \
|
||||
rm -rf /var/lib/apt/lists/*;
|
||||
|
||||
COPY --chmod=775 start.sh /start.sh
|
||||
COPY --chmod=775 ./docker/start.sh /start.sh
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/start.sh"]
|
|
@ -1,6 +1,10 @@
|
|||
#!/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."
|
||||
read -p "Continue [y/n]? " -n 1 -r
|
||||
|
@ -21,9 +25,13 @@ docker buildx inspect --bootstrap
|
|||
docker buildx build \
|
||||
--push \
|
||||
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
--file=./docker/Dockerfile \
|
||||
--tag=thanek/nextcloud-dlna:$version .
|
||||
|
||||
docker buildx build \
|
||||
--push \
|
||||
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
--file=./docker/Dockerfile \
|
||||
--tag=thanek/nextcloud-dlna .
|
||||
|
||||
cd - || exit
|
Loading…
Reference in a new issue