elvish/Dockerfile
FallenWarrior2k aaa4d2a431 Lock image versions in Dockerfile
I'm suspecting the broken build was related to the package name
changing, and restricting the versions in use should prevent this in
future.
2021-03-19 23:14:10 +00:00

15 lines
365 B
Docker

FROM golang:1.16-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"]