implement video download
All checks were successful
Build and Push Multi-Arch Docker Image / build-and-push (push) Successful in 18m34s
All checks were successful
Build and Push Multi-Arch Docker Image / build-and-push (push) Successful in 18m34s
needs check, if converted files can be run on device Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -13,13 +13,28 @@ RUN dart run build_runner build --delete-conflicting-outputs && \
|
||||
dart compile exe bin/server.dart -o bin/server \
|
||||
-DAPP_VERSION=$APP_VERSION
|
||||
|
||||
# Build minimal serving image from AOT-compiled `/server`
|
||||
# and the pre-built AOT-runtime in the `/runtime/` directory of the base image.
|
||||
FROM scratch
|
||||
COPY --from=build /runtime/ /
|
||||
# Build minimal serving image with ffmpeg and yt-dlp
|
||||
FROM debian:stable-slim
|
||||
|
||||
# Install ffmpeg, python3, nodejs (for yt-dlp JS runtime), and download yt-dlp
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
ca-certificates \
|
||||
curl \
|
||||
python3 \
|
||||
nodejs \
|
||||
&& curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
|
||||
&& chmod a+rx /usr/local/bin/yt-dlp \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=build /app/bin/server /app/bin/
|
||||
COPY assets /assets
|
||||
COPY scripts/start.sh /app/start.sh
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Start server.
|
||||
EXPOSE 3000
|
||||
CMD ["/app/bin/server"]
|
||||
CMD ["/bin/sh", "/app/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user