2021-11-09 10:12:36 +00:00
|
|
|
FROM alpine:edge as builder
|
2021-11-09 08:46:03 +00:00
|
|
|
LABEL stage=go-builder
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY ./ ./
|
2021-11-09 10:02:15 +00:00
|
|
|
RUN apk add --no-cache bash git go gcc musl-dev; \
|
2022-01-20 12:52:14 +00:00
|
|
|
bash build.sh docker
|
2021-11-09 08:46:03 +00:00
|
|
|
|
2021-11-09 10:12:36 +00:00
|
|
|
FROM alpine:edge
|
2021-11-09 08:46:03 +00:00
|
|
|
LABEL MAINTAINER="i@nn.ci"
|
2021-11-13 06:23:41 +00:00
|
|
|
VOLUME /opt/alist/data/
|
2021-11-09 08:46:03 +00:00
|
|
|
WORKDIR /opt/alist/
|
2021-11-09 09:22:58 +00:00
|
|
|
COPY --from=builder /app/bin/alist ./
|
2021-11-09 08:46:03 +00:00
|
|
|
EXPOSE 5244
|
|
|
|
CMD [ "./alist" ]
|