mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-11-27 23:11:20 +08:00
2563b2316f
Also slim down the Dockerfile to only include Elvish.
10 lines
253 B
Docker
10 lines
253 B
Docker
FROM golang:1.22-alpine3.19 as builder
|
|
RUN apk add --no-cache --virtual build-deps make git
|
|
# Build Elvish
|
|
COPY . /go/src/src.elv.sh
|
|
RUN make -C /go/src/src.elv.sh get
|
|
|
|
FROM alpine:3.19
|
|
COPY --from=builder /go/bin/elvish /bin/elvish
|
|
CMD ["/bin/elvish"]
|