Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -9
Dockerfile
CHANGED
@@ -1,17 +1,16 @@
|
|
1 |
-
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
FROM ubuntu:latest
|
3 |
|
4 |
-
# Install
|
5 |
-
RUN apt-get update && apt-get install -y
|
6 |
|
7 |
-
#
|
8 |
-
RUN
|
9 |
|
10 |
-
# Set
|
11 |
-
|
12 |
|
13 |
# Expose the desired port
|
14 |
EXPOSE 7681
|
15 |
|
16 |
-
#
|
17 |
-
CMD ["ttyd", "-W", "--port", "7681"]
|
|
|
|
|
1 |
FROM ubuntu:latest
|
2 |
|
3 |
+
# Install required packages
|
4 |
+
RUN apt-get update && apt-get install -y curl
|
5 |
|
6 |
+
# Fetch ttyd binary
|
7 |
+
RUN curl -Lo /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64
|
8 |
|
9 |
+
# Set permissions
|
10 |
+
RUN chmod +x /usr/local/bin/ttyd
|
11 |
|
12 |
# Expose the desired port
|
13 |
EXPOSE 7681
|
14 |
|
15 |
+
# Start ttyd with the specified options
|
16 |
+
CMD ["/usr/local/bin/ttyd", "-W", "--port", "7681"]
|