Emalawi19 commited on
Commit
3f7ca19
·
verified ·
1 Parent(s): c994386

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install Linux tools
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ wget \
7
+ git \
8
+ nano \
9
+ vim \
10
+ htop \
11
+ unzip \
12
+ zip \
13
+ build-essential \
14
+ python3-pip \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Install ttyd (browser-based terminal)
18
+ RUN wget https://github.com/tsl0922/ttyd/releases/latest/download/ttyd.x86_64 \
19
+ -O /usr/local/bin/ttyd && \
20
+ chmod +x /usr/local/bin/ttyd
21
+
22
+ EXPOSE 7860
23
+
24
+ CMD ["ttyd", "-p", "7860", "bash"]