-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (21 loc) · 729 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Build Elvish and gotty in a separate builder image
FROM golang:1.23.0-alpine3.20 as builder
RUN apk update && \
apk add --virtual build-deps make git
RUN export CGO_ENABLED=0 && \
go install src.elv.sh/cmd/[email protected] && \
go install github.com/sorenisanerd/[email protected]
# Runtime image
FROM alpine:3.20
RUN addgroup elves
# Useful packages for users of try.elv.sh
RUN apk update && apk add tmux mandoc man-pages vim curl git bash kakoune ripgrep fd pijul eza
COPY --from=builder /go/bin/elvish /bin/elvish
COPY --from=builder /go/bin/gotty /bin/gotty
RUN mkdir /app
COPY run.bash /root/run.bash
COPY gotty.conf /root/.gotty
COPY notice /etc/notice
WORKDIR /root
EXPOSE 80
CMD ["/bin/gotty", "./run.bash"]