mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:40:31 +08:00
cc924d20b6
Removed gotty and added git.
15 lines
378 B
Docker
15 lines
378 B
Docker
FROM golang:alpine as builder
|
|
RUN apk update && \
|
|
apk add --virtual build-deps make git
|
|
# Build Elvish
|
|
COPY . /go/src/github.com/elves/elvish
|
|
RUN make -C /go/src/github.com/elves/elvish get
|
|
|
|
FROM alpine
|
|
COPY --from=builder /go/bin/elvish /bin/elvish
|
|
RUN adduser -D elf
|
|
RUN apk update && apk add tmux man man-pages vim curl git
|
|
USER elf
|
|
WORKDIR /home/elf
|
|
CMD ["/bin/elvish"]
|