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/*;
|
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"]
|
|
@ -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
|
Loading…
Reference in a new issue