mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Update Dockerfile.
Removed gotty and added git.
This commit is contained in:
parent
4ea0b55c18
commit
cc924d20b6
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user