💚 fix dockerfile

pull/548/head
微凉 2021-11-09 18:02:15 +08:00
parent 6275e27d1b
commit a8730e82b5
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
FROM alpine as builder
FROM alpine:latest as builder
LABEL stage=go-builder
WORKDIR /app/
COPY ./ ./
RUN apk add --no-cache bash git go=1.17.3-r0 gcc musl-dev; \
RUN apk add --no-cache bash git go gcc musl-dev; \
sh build.sh docker
FROM alpine
FROM alpine:latest
LABEL MAINTAINER="i@nn.ci"
WORKDIR /opt/alist/
COPY --from=builder /app/bin/alist ./