-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile-Fedora
22 lines (18 loc) · 887 Bytes
/
Dockerfile-Fedora
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Keep this in sync with Dockerfile-Debian
FROM golang AS gotty-build
RUN go get github.com/yudai/gotty \
&& echo GOPATH=$GOPATH && $GOPATH/bin/gotty || true
FROM fedora:latest AS fedora-updated
RUN dnf update -y
FROM fedora-updated AS fedora-plus
# For CentOS instead of Fedora, use /etc/yum.conf instead of /etc/dnf/dnf.conf:
RUN sed -i -e '/tsflags=nodocs/s/^/#/' /etc/dnf/dnf.conf \
&& dnf install -y openssh-clients git hub findutils man-db man man-pages less which htop \
nano micro bash-completion util-linux-user zsh fish iputils net-tools golang-bin \
powerline-fonts ShellCheck tmux procps-ng psmisc
FROM fedora-plus AS cloudshell-fedora
COPY --from=gotty-build /go/bin/gotty /gotty
COPY ./init /init
ENV TERM=xterm-256color
EXPOSE 8080
ENTRYPOINT /gotty --credential "$USER_ID":"$USER_PWD" --permit-write /init tmux new -A -s CLOUD