try new container build
All checks were successful
Build and Push Multi-Arch Docker Image / build-and-push (push) Successful in 11m23s

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-11-28 21:15:23 +01:00
parent 4defe266eb
commit 4ca90e327f
2 changed files with 13 additions and 1 deletions

View File

@@ -8,7 +8,8 @@ RUN dart pub get
# Copy app source code (except anything in .dockerignore) and AOT compile app.
COPY . .
RUN APP_VERSION=$(awk '/^version:/{print $2}' pubspec.yaml) && \
RUN dart run build_runner build --delete-conflicting-outputs && \
APP_VERSION=$(grep 'version:' pubspec.yaml | sed 's/version: //') && \
dart compile exe bin/server.dart -o bin/server \
-DAPP_VERSION=$APP_VERSION