2023-11-25 06:22:13 +00:00
|
|
|
FROM alpine:edge as builder
|
2022-09-08 12:18:45 +00:00
|
|
|
LABEL stage=go-builder
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY ./ ./
|
2023-01-16 05:43:15 +00:00
|
|
|
RUN apk add --no-cache bash curl gcc git go musl-dev; \
|
2022-09-08 12:18:45 +00:00
|
|
|
bash build.sh release docker
|
|
|
|
|
2023-11-25 06:22:13 +00:00
|
|
|
FROM alpine:edge
|
2022-09-08 12:18:45 +00:00
|
|
|
LABEL MAINTAINER="i@nn.ci"
|
|
|
|
VOLUME /opt/alist/data/
|
|
|
|
WORKDIR /opt/alist/
|
|
|
|
COPY --from=builder /app/bin/alist ./
|
2022-12-28 09:18:27 +00:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2023-01-16 05:43:15 +00:00
|
|
|
RUN apk add --no-cache bash ca-certificates su-exec tzdata; \
|
2022-12-29 09:16:30 +00:00
|
|
|
chmod +x /entrypoint.sh
|
2022-12-30 06:21:39 +00:00
|
|
|
ENV PUID=0 PGID=0 UMASK=022
|
2023-06-10 14:26:09 +00:00
|
|
|
EXPOSE 5244 5245
|
2023-03-11 07:33:59 +00:00
|
|
|
CMD [ "/entrypoint.sh" ]
|