mirror of https://github.com/Xhofe/alist
14 lines
319 B
Docker
14 lines
319 B
Docker
FROM alpine:edge as builder
|
|
LABEL stage=go-builder
|
|
WORKDIR /app/
|
|
COPY ./ ./
|
|
RUN apk add --no-cache bash git go gcc musl-dev; \
|
|
bash build.sh docker
|
|
|
|
FROM alpine:edge
|
|
LABEL MAINTAINER="i@nn.ci"
|
|
VOLUME /opt/alist/data/
|
|
WORKDIR /opt/alist/
|
|
COPY --from=builder /app/bin/alist ./
|
|
EXPOSE 5244
|
|
CMD [ "./alist", "-docker" ] |