docker image builds and runs. Credential/error improvements
This commit is contained in:
parent
f391e07b2e
commit
e01f48b2e9
7 changed files with 68 additions and 58 deletions
12
Dockerfile
12
Dockerfile
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue