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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user