Skip to content

Commit

Permalink
fix: modify docker files to use hardcoded value versus variable
Browse files Browse the repository at this point in the history
  • Loading branch information
carddev81 committed Jan 6, 2025
1 parent 84b88c5 commit e5ca13f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions provider-middleware/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ARG FFMPEG_VERSION=7.1
ARG GOLANG_VERSION=1.23.2
ARG YTDLP_VERSION=2024.12.06
# TODO The following variable needs to be reworked as it does not work within a shell curl command maybe
ARG YTDLP_VERSION=2024.12.23

FROM mwader/static-ffmpeg:$FFMPEG_VERSION AS ffmpeg

FROM golang:$GOLANG_VERSION AS yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/download/$YTDLP_VERSION/yt-dlp -o /yt-dlp && chmod a+x /yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2024.12.23/yt-dlp -o /yt-dlp && chmod a+x /yt-dlp

FROM golang:$GOLANG_VERSION-alpine as builder
WORKDIR /app
Expand Down
5 changes: 3 additions & 2 deletions provider-middleware/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ARG FFMPEG_VERSION=7.1
ARG GOLANG_VERSION=1.23.2
ARG YTDLP_VERSION=2024.12.06
# TODO The following variable needs to be reworked as it does not work within the shell curl command maybe
ARG YTDLP_VERSION=2024.12.23

FROM mwader/static-ffmpeg:$FFMPEG_VERSION AS ffmpeg

FROM golang:$GOLANG_VERSION AS yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/download/$YTDLP_VERSION/yt-dlp -o /yt-dlp && chmod a+x /yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2024.12.23/yt-dlp -o /yt-dlp && chmod a+x /yt-dlp

FROM golang:$GOLANG_VERSION-alpine as builder
WORKDIR /app
Expand Down

0 comments on commit e5ca13f

Please sign in to comment.