Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -4,13 +4,13 @@ FROM ubuntu:latest
|
|
4 |
RUN apt-get update && apt-get install -y curl bash
|
5 |
|
6 |
# Fetch ttyd binary
|
7 |
-
RUN curl -Lo
|
8 |
|
9 |
# Set permissions
|
10 |
-
RUN chmod +x
|
11 |
|
12 |
# Expose the desired port
|
13 |
EXPOSE 7681
|
14 |
|
15 |
# Start ttyd with the specified options
|
16 |
-
CMD ["
|
|
|
4 |
RUN apt-get update && apt-get install -y curl bash
|
5 |
|
6 |
# Fetch ttyd binary
|
7 |
+
RUN curl -Lo ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64
|
8 |
|
9 |
# Set permissions
|
10 |
+
RUN chmod +x ttyd
|
11 |
|
12 |
# Expose the desired port
|
13 |
EXPOSE 7681
|
14 |
|
15 |
# Start ttyd with the specified options
|
16 |
+
CMD ["ttyd", "--writable", "--port", "7681", "bash"]
|