-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
24 lines (22 loc) · 892 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
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:18.5.0 as builder
# Build frontend code which added upload/download button
RUN git clone --depth=1 https://github.com/cloudtty/cloudtty && \
cp -r cloudtty/html/ /app/
WORKDIR /app
RUN yarn install
RUN yarn run build
FROM --platform=${BUILDPLATFORM:-linux/amd64} ghcr.io/dtzar/helm-kubectl:3.9
ARG VERSION
ENV BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
ENV VERSION=${VERSION}
COPY install-ttyd.sh /bin/install-ttyd.sh
COPY install-vela.sh /bin/install-vela.sh
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
&& apk -U upgrade \
&& apk add --no-cache ca-certificates lrzsz vim \
&& ln -s /usr/bin/lrz /usr/bin/rz \
&& ln -s /usr/bin/lsz /usr/bin/sz \
&& /bin/install-ttyd.sh \
&& /bin/install-vela.sh
COPY --from=builder /app/dist/inline.html index.html
ENTRYPOINT ttyd