aboutsummaryrefslogtreecommitdiffstats
path: root/docker/build.sh
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-13 01:34:08 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-13 01:34:08 +0200
commit45832ce1b8ad6c2d118a290b0e25825e45e6891a (patch)
tree56b786f4c6acc4cfb106ac285c135edc97397ca9 /docker/build.sh
parentrefactor(frontend): generation appearance fixes (diff)
downloadrefinery-45832ce1b8ad6c2d118a290b0e25825e45e6891a.tar.gz
refinery-45832ce1b8ad6c2d118a290b0e25825e45e6891a.tar.zst
refinery-45832ce1b8ad6c2d118a290b0e25825e45e6891a.zip
build: fix Dockerfile
* Automatically invoke the distTar Gradle task before building the container. * Avoid cache mounts for package managers, because they don't support ARG interpolation and may lead to locking conflicts when a cache is accidentally shared between containers.
Diffstat (limited to 'docker/build.sh')
-rwxr-xr-xdocker/build.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/build.sh b/docker/build.sh
index 5c25bb5f..5e0c2425 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -6,6 +6,8 @@
6 6
7set -euo pipefail 7set -euo pipefail
8 8
9(cd .. && ./gradlew :refinery-language-web:distTar)
10
9refinery_version="$(grep '^version=' ../gradle.properties | cut -d'=' -f2)" 11refinery_version="$(grep '^version=' ../gradle.properties | cut -d'=' -f2)"
10distribution_name="refinery-language-web-${refinery_version}" 12distribution_name="refinery-language-web-${refinery_version}"
11rm -rf "${distribution_name}" dist app_lib app_{amd64,arm64}_bin lib lib_{amd64,arm64} 13rm -rf "${distribution_name}" dist app_lib app_{amd64,arm64}_bin lib lib_{amd64,arm64}