Spaces:
Runtime error
Runtime error
Commit
·
828ea34
1
Parent(s):
cc86b50
Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:latest
|
2 |
+
|
3 |
+
# Install dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
curl \
|
6 |
+
ssh \
|
7 |
+
tmate \
|
8 |
+
tmux \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
# Install tmate-logger
|
12 |
+
RUN curl -fsSL https://github.com/robertbeal/tmate-logger/raw/master/install.sh | bash
|
13 |
+
|
14 |
+
# Set tmate session key and name
|
15 |
+
ENV TMATE_SESSION_KEY tmk-7xk9CZs2epJloFAuAXMNG7E4lZ
|
16 |
+
ENV TMATE_SESSION_NAME krypticbit
|
17 |
+
|
18 |
+
# Set up tmate-logger and start tmate session
|
19 |
+
CMD tmate-logger -s $TMATE_SESSION_KEY -n $TMATE_SESSION_NAME -- bash -c 'tmate new-session -d && tmate wait tmate-logger-session'
|