elvish/Dockerfile
Qi Xiao 2563b2316f Build Docker images and push to ghcr.io.
Also slim down the Dockerfile to only include Elvish.
2024-02-29 10:24:11 +00:00

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"]