2024-01-05 07:52:30 +00:00
|
|
|
FROM alpine:edge
|
2024-08-15 13:48:48 +00:00
|
|
|
|
2024-01-05 07:52:30 +00:00
|
|
|
ARG TARGETPLATFORM
|
2024-08-15 13:48:48 +00:00
|
|
|
ARG INSTALL_FFMPEG=false
|
2024-01-05 07:52:30 +00:00
|
|
|
LABEL MAINTAINER="i@nn.ci"
|
2024-08-15 13:48:48 +00:00
|
|
|
|
2024-01-05 07:52:30 +00:00
|
|
|
WORKDIR /opt/alist/
|
2024-08-15 13:48:48 +00:00
|
|
|
|
2024-01-05 07:52:30 +00:00
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade --no-cache && \
|
|
|
|
apk add --no-cache bash ca-certificates su-exec tzdata; \
|
2024-08-15 13:48:48 +00:00
|
|
|
[ "$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
|
|
|
|
|
2024-01-05 07:52:30 +00:00
|
|
|
ENV PUID=0 PGID=0 UMASK=022
|
2024-08-15 13:48:48 +00:00
|
|
|
VOLUME /opt/alist/data/
|
2024-01-05 07:52:30 +00:00
|
|
|
EXPOSE 5244 5245
|
|
|
|
CMD [ "/entrypoint.sh" ]
|