forked from tsl0922/ttyd
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.alpine
More file actions
31 lines (22 loc) · 1.3 KB
/
Dockerfile.alpine
File metadata and controls
31 lines (22 loc) · 1.3 KB
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
28
29
30
31
FROM andi91/curl_jq_alpine as loader
ARG TARGETARCH
RUN echo Das ist Loadiamge ${TARGETARCH}
RUN if [[ $TARGETARCH == "arm64" ]]; then curl -sL https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.aarch64 -o /tmp/ttyd.arm64; fi && \
if [[ $TARGETARCH == "arm" ]]; then curl -sL https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.armhf -o /tmp/ttyd.arm; fi && \
if [[ $TARGETARCH == "amd64" ]]; then curl -sL https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 -o /tmp/ttyd.amd64; fi
#RUN if [[ $TARGETARCH == "amd64" ]]; then curl -sL https://github.com/krallin/tini/releases/download/v0.19.0/tini-amd64 -o /tmp/tini.amd64; fi && \
# if [[ $TARGETARCH == "arm" ]]; then curl -sL https://github.com/krallin/tini/releases/download/v0.19.0/tini-armhf -o /tmp/tini.arm; fi && \
# if [[ $TARGETARCH == "arm64" ]]; then curl -sL https://github.com/krallin/tini/releases/download/v0.19.0/tini-arm64 -o /tmp/tini.arm64; fi
RUN ls -1 /tmp
FROM alpine
ARG TARGETARCH
RUN apk add --no-cache bash tini
COPY --from=loader /tmp/ttyd.${TARGETARCH} /usr/bin/ttyd
RUN chmod +x /usr/bin/ttyd
#Problems with GitHub Tini file -> install over apk
#COPY --from=loader /tmp/tini.${TARGETARCH} /sbin/tini
#RUN chmod +x /sbin/tini
EXPOSE 7681
WORKDIR /root
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["ttyd", "bash"]