2022-09-08 12:18:45 +00:00
|
|
|
FROM alpine:edge as builder
|
|
|
|
LABEL stage=go-builder
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY ./ ./
|
|
|
|
RUN apk add --no-cache bash git go gcc musl-dev curl; \
|
|
|
|
bash build.sh release docker
|
|
|
|
|
|
|
|
FROM alpine:edge
|
|
|
|
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
|
2022-12-29 09:16:30 +00:00
|
|
|
RUN apk add ca-certificates bash su-exec; \
|
|
|
|
chmod +x /entrypoint.sh
|
2022-12-28 09:18:27 +00:00
|
|
|
ENV PUID=1000 PGID=1000 UMASK=022
|
2022-09-08 12:18:45 +00:00
|
|
|
EXPOSE 5244
|
2022-12-29 09:16:30 +00:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|