docker image builds and runs. Credential/error improvements

This commit is contained in:
Toastie 2025-02-13 12:19:03 +13:00
parent f391e07b2e
commit e01f48b2e9
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
7 changed files with 68 additions and 58 deletions

View file

@ -32,17 +32,17 @@ ADD --chmod=755 https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
# Create a new user, install dependencies, and set up sudoers file
RUN apt update; \
apt install -y --no-install-recommends ffmpeg python3; \
apt install -y --no-install-recommends \
libicu-dev ca-certificates \
ffmpeg python3; \
apt autoremove -y; \
apt clean -y;
RUN update-ca-certificates
# Copy the built application and the entrypoint script from the build stage
COPY --from=build /app ./
COPY --chmod=755 docker-entrypoint.sh /usr/local/sbin/
# Set environment variables
ENV shard_id=0
ENV total_shards=1
COPY docker-entrypoint.sh /usr/local/sbin/
# Define the data directory as a volume
VOLUME [ "/app/data" ]