load trending images from tmdb at startup

- need TMDB_API_KEY as environment variable
- mount /cache for data persistence

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-11-17 23:21:01 +01:00
parent 4587901672
commit 4ce471599b
17 changed files with 305 additions and 10 deletions

View File

@@ -8,7 +8,6 @@ RUN dart pub get
# Copy app source code (except anything in .dockerignore) and AOT compile app.
COPY . .
RUN dart run build_runner build --delete-conflicting-outputs
RUN APP_VERSION=$(awk '/^version:/{print $2}' pubspec.yaml) && \
dart compile exe bin/server.dart -o bin/server \
-DAPP_VERSION=$APP_VERSION
@@ -21,5 +20,5 @@ COPY --from=build /app/bin/server /app/bin/
COPY assets /
# Start server.
EXPOSE 8080
EXPOSE 3000
CMD ["/app/bin/server"]