forked from AlistGo/alist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/docker_image_aio'
# Conflicts: # .github/workflows/release_docker.yml
- Loading branch information
Showing
4 changed files
with
82 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ RUN bash build.sh release docker | |
FROM alpine:edge | ||
|
||
ARG INSTALL_FFMPEG=false | ||
ARG INSTALL_ARIA2=false | ||
LABEL MAINTAINER="[email protected]" | ||
|
||
WORKDIR /opt/alist/ | ||
|
@@ -18,13 +19,20 @@ RUN apk update && \ | |
apk upgrade --no-cache && \ | ||
apk add --no-cache bash ca-certificates su-exec tzdata; \ | ||
[ "$INSTALL_FFMPEG" = "true" ] && apk add --no-cache ffmpeg; \ | ||
[ "$INSTALL_ARIA2" = "true" ] && apk add --no-cache curl aria2 && \ | ||
mkdir -p /root/.aria2 && \ | ||
wget https://github.com/P3TERX/aria2.conf/archive/refs/heads/master.tar.gz -O /tmp/aria-conf.tar.gz && \ | ||
tar -zxvf /tmp/aria-conf.tar.gz -C /root/.aria2 && rm -f /tmp/aria-conf.tar.gz && \ | ||
sed -i 's|rpc-secret|#rpc-secret|g' /root/.aria2/aria2.conf && \ | ||
touch /root/.aria2/aria2.session && \ | ||
/root/.aria2/tracker.sh ; \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY --from=builder /app/bin/alist ./ | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh && /entrypoint.sh version | ||
|
||
ENV PUID=0 PGID=0 UMASK=022 | ||
ENV PUID=0 PGID=0 UMASK=022 RUN_ARIA2=${INSTALL_ARIA2} | ||
VOLUME /opt/alist/data/ | ||
EXPOSE 5244 5245 | ||
CMD [ "/entrypoint.sh" ] |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ FROM alpine:edge | |
|
||
ARG TARGETPLATFORM | ||
ARG INSTALL_FFMPEG=false | ||
ARG INSTALL_ARIA2=false | ||
LABEL MAINTAINER="[email protected]" | ||
|
||
WORKDIR /opt/alist/ | ||
|
@@ -10,13 +11,20 @@ RUN apk update && \ | |
apk upgrade --no-cache && \ | ||
apk add --no-cache bash ca-certificates su-exec tzdata; \ | ||
[ "$INSTALL_FFMPEG" = "true" ] && apk add --no-cache ffmpeg; \ | ||
[ "$INSTALL_ARIA2" = "true" ] && apk add --no-cache curl aria2 && \ | ||
mkdir -p /root/.aria2 && \ | ||
wget https://github.com/P3TERX/aria2.conf/archive/refs/heads/master.tar.gz -O /tmp/aria-conf.tar.gz && \ | ||
tar -zxvf /tmp/aria-conf.tar.gz -C /root/.aria2 && rm -f /tmp/aria-conf.tar.gz && \ | ||
sed -i 's|rpc-secret|#rpc-secret|g' /root/.aria2/aria2.conf && \ | ||
touch /root/.aria2/aria2.session && \ | ||
/root/.aria2/tracker.sh ; \ | ||
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 | ||
ENV PUID=0 PGID=0 UMASK=022 RUN_ARIA2=${INSTALL_ARIA2} | ||
VOLUME /opt/alist/data/ | ||
EXPOSE 5244 5245 | ||
CMD [ "/entrypoint.sh" ] |
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