From cc924d20b6db87a17dba6b261306d1fd634fe3f5 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Mon, 22 Oct 2018 23:50:40 +0100 Subject: [PATCH] Update Dockerfile. Removed gotty and added git. --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1def03d1..36d99046 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,14 @@ FROM golang:alpine as builder RUN apk update && \ apk add --virtual build-deps make git -# Build gotty -RUN go get -d github.com/yudai/gotty && \ - git -C /go/src/github.com/yudai/gotty checkout release-1.0 && \ - go get github.com/yudai/gotty # 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 -COPY --from=builder /go/bin/gotty /bin/gotty RUN adduser -D elf -RUN apk update && apk add tmux man man-pages vim curl +RUN apk update && apk add tmux man man-pages vim curl git USER elf WORKDIR /home/elf -EXPOSE 8080 CMD ["/bin/elvish"]