2021-03-16 21:13:56 +08:00
|
|
|
FROM golang:1.16-alpine as builder
|
2018-06-13 21:46:49 +08:00
|
|
|
RUN apk update && \
|
|
|
|
apk add --virtual build-deps make git
|
2018-10-20 23:49:33 +08:00
|
|
|
# Build Elvish
|
2021-01-27 09:28:38 +08:00
|
|
|
COPY . /go/src/src.elv.sh
|
|
|
|
RUN make -C /go/src/src.elv.sh get
|
2018-06-13 21:46:49 +08:00
|
|
|
|
2021-03-16 21:13:56 +08:00
|
|
|
FROM alpine:3.13
|
2018-09-15 21:42:44 +08:00
|
|
|
COPY --from=builder /go/bin/elvish /bin/elvish
|
|
|
|
RUN adduser -D elf
|
2021-03-16 21:13:04 +08:00
|
|
|
RUN apk update && apk add tmux mandoc man-pages vim curl git
|
2018-09-15 21:42:44 +08:00
|
|
|
USER elf
|
|
|
|
WORKDIR /home/elf
|
|
|
|
CMD ["/bin/elvish"]
|