diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-09-13 01:34:08 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-09-13 01:34:08 +0200 |
commit | 45832ce1b8ad6c2d118a290b0e25825e45e6891a (patch) | |
tree | 56b786f4c6acc4cfb106ac285c135edc97397ca9 /docker/build.sh | |
parent | refactor(frontend): generation appearance fixes (diff) | |
download | refinery-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-x | docker/build.sh | 2 |
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 | ||
7 | set -euo pipefail | 7 | set -euo pipefail |
8 | 8 | ||
9 | (cd .. && ./gradlew :refinery-language-web:distTar) | ||
10 | |||
9 | refinery_version="$(grep '^version=' ../gradle.properties | cut -d'=' -f2)" | 11 | refinery_version="$(grep '^version=' ../gradle.properties | cut -d'=' -f2)" |
10 | distribution_name="refinery-language-web-${refinery_version}" | 12 | distribution_name="refinery-language-web-${refinery_version}" |
11 | rm -rf "${distribution_name}" dist app_lib app_{amd64,arm64}_bin lib lib_{amd64,arm64} | 13 | rm -rf "${distribution_name}" dist app_lib app_{amd64,arm64}_bin lib lib_{amd64,arm64} |