Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -17
Dockerfile
CHANGED
@@ -1,20 +1,14 @@
|
|
1 |
-
FROM
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
RUN make bindata/static/js/gotty.js.map
|
6 |
|
7 |
-
FROM
|
8 |
-
|
9 |
-
|
10 |
-
COPY --from=js-build /gotty/js/node_modules /gotty/js/node_modules
|
11 |
-
COPY --from=js-build /gotty/bindata/static/js /gotty/bindata/static/js
|
12 |
-
RUN CGO_ENABLED=0 make
|
13 |
|
14 |
-
|
15 |
-
RUN apk update && \
|
16 |
-
apk upgrade && \
|
17 |
-
apk --no-cache add ca-certificates bash
|
18 |
WORKDIR /root
|
19 |
-
|
20 |
-
|
|
|
|
1 |
+
FROM ubuntu:18.04
|
2 |
+
RUN apt-get update && apt-get install -y autoconf automake curl cmake git libtool make \
|
3 |
+
&& git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
|
4 |
+
&& cd /ttyd && env BUILD_TARGET=x86_64 ./scripts/cross-build.sh
|
|
|
5 |
|
6 |
+
FROM alpine
|
7 |
+
COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd
|
8 |
+
RUN apk add --no-cache bash tini
|
|
|
|
|
|
|
9 |
|
10 |
+
EXPOSE 7681 4040 80
|
|
|
|
|
|
|
11 |
WORKDIR /root
|
12 |
+
|
13 |
+
ENTRYPOINT ["/sbin/tini", "--"]
|
14 |
+
CMD ["ttyd", "--writable", "-s", "3", "bash"]
|