forked from AlistGo/alist
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(docker): using docker build args instead of extra dockerfile for f…
…fmpeg (AlistGo#6989) * build: using docker build arg to determine install ffmpeg or not * ci: pass build-args to ffmpeg image build step
- Loading branch information
1 parent
d802af1
commit b816a52
Showing
5 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
FROM alpine:edge | ||
|
||
ARG TARGETPLATFORM | ||
ARG INSTALL_FFMPEG=false | ||
LABEL MAINTAINER="i@nn.ci" | ||
VOLUME /opt/alist/data/ | ||
|
||
WORKDIR /opt/alist/ | ||
COPY /build/${TARGETPLATFORM}/alist ./ | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN apk update && \ | ||
apk upgrade --no-cache && \ | ||
apk add --no-cache bash ca-certificates su-exec tzdata; \ | ||
chmod +x /entrypoint.sh && \ | ||
rm -rf /var/cache/apk/* && \ | ||
/entrypoint.sh version | ||
[ "$INSTALL_FFMPEG" = "true" ] && apk add --no-cache ffmpeg; \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY /build/${TARGETPLATFORM}/alist ./ | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh && /entrypoint.sh version | ||
|
||
ENV PUID=0 PGID=0 UMASK=022 | ||
VOLUME /opt/alist/data/ | ||
EXPOSE 5244 5245 | ||
CMD [ "/entrypoint.sh" ] |
This file was deleted.
Oops, something went wrong.