Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
FROM ubuntu:latest
|
3 |
+
|
4 |
+
# Install necessary packages
|
5 |
+
RUN apt-get update && apt-get install -y sudo snapd
|
6 |
+
|
7 |
+
# Install ttyd snap package
|
8 |
+
RUN sudo snap install ttyd --classic
|
9 |
+
|
10 |
+
# Set the working directory
|
11 |
+
WORKDIR /
|
12 |
+
|
13 |
+
# Expose the desired port
|
14 |
+
EXPOSE 7681
|
15 |
+
|
16 |
+
# Run ttyd with the specified options
|
17 |
+
CMD ["ttyd", "-W", "--port", "7681"]
|