-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.ci
More file actions
25 lines (20 loc) · 602 Bytes
/
Dockerfile.ci
File metadata and controls
25 lines (20 loc) · 602 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG BASE_IMAGE_TAG=base
FROM xiaoyaliu/alist:latest
LABEL MAINTAINER="power721"
ARG TARGETPLATFORM
ARG INSTALL_FFMPEG=false
ARG INSTALL_ARIA2=false
ARG USER=alist
ARG UID=1001
ARG GID=1001
WORKDIR /opt/alist/
RUN addgroup -g ${GID} ${USER} && \
adduser -D -u ${UID} -G ${USER} ${USER} && \
mkdir -p /opt/alist/data
COPY --chmod=755 --chown=${UID}:${GID} /build/${TARGETPLATFORM}/alist ./
COPY --chmod=755 --chown=${UID}:${GID} entrypoint.sh /entrypoint.sh
RUN /entrypoint.sh version
ENV UMASK=022 RUN_ARIA2=${INSTALL_ARIA2}
VOLUME /opt/alist/data/
EXPOSE 5244 5245
CMD [ "/entrypoint.sh" ]