elvish/Dockerfile
Qi Xiao f7cb556d9b Require Go 1.18.
- Run "go fix" to remove legacy build tags

- Use staticcheck@master until it has a release that supports Go 1.18

- Turn off autocrlf for Windows tasks
2022-03-20 15:28:23 +00:00

15 lines
365 B
Docker

FROM golang:1.18-alpine as builder
RUN apk update && \
apk add --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.13
COPY --from=builder /go/bin/elvish /bin/elvish
RUN adduser -D elf
RUN apk update && apk add tmux mandoc man-pages vim curl git
USER elf
WORKDIR /home/elf
CMD ["/bin/elvish"]