dracoox commited on
Commit
e117717
·
verified ·
1 Parent(s): efa481e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -10,12 +10,10 @@ RUN apt update && apt upgrade -y && \
10
  openssh-client \
11
  neofetch \
12
  procps \
13
- neofetch \
14
- speedtest-cli \
15
- ffmpeg \
16
  ca-certificates \
17
  build-essential \
18
- sudo && \
 
19
  apt clean && rm -rf /var/lib/apt/lists/*
20
 
21
  # Create user draco with UID 1000 and no password
@@ -30,14 +28,13 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
30
  # Install Python Telegram Bot API
31
  RUN pip3 install --no-cache-dir pytelegrambotapi
32
 
33
- # Create a working directory
34
  RUN mkdir -p /home/draco/app && \
35
  chown -R draco:draco /home/draco/app
36
 
37
  USER draco
38
  WORKDIR /home/draco/app
39
 
40
- # Dummy app content
41
  RUN echo "Tmate Session Running..." > index.html
42
 
43
- CMD python3 -m http.server $PORT
 
10
  openssh-client \
11
  neofetch \
12
  procps \
 
 
 
13
  ca-certificates \
14
  build-essential \
15
+ sudo \
16
+ tmate && \
17
  apt clean && rm -rf /var/lib/apt/lists/*
18
 
19
  # Create user draco with UID 1000 and no password
 
28
  # Install Python Telegram Bot API
29
  RUN pip3 install --no-cache-dir pytelegrambotapi
30
 
31
+ # Create app directory for draco
32
  RUN mkdir -p /home/draco/app && \
33
  chown -R draco:draco /home/draco/app
34
 
35
  USER draco
36
  WORKDIR /home/draco/app
37
 
 
38
  RUN echo "Tmate Session Running..." > index.html
39
 
40
+ CMD python3 -m http.server $PORT & tmate -F