YHX-2010 commited on
Commit
82aa88d
·
verified ·
1 Parent(s): c840e86

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -9,7 +9,10 @@ USER root
9
  # chmod -R go-w "$(brew --prefix)/share/zsh" && \
10
  # brew install --cask visual-studio-code
11
 
12
- RUN apt-get update && apt-get install cloudflared openssh
 
 
 
13
 
14
  # config
15
  RUN touch ./conf.txt
@@ -21,4 +24,5 @@ RUN echo 'PasswordAuthentication yes' > conf.txt
21
 
22
  # start!
23
  EXPOSE 8000
24
- RUN /usr/sbin/sshd -f conf.txt
 
 
9
  # chmod -R go-w "$(brew --prefix)/share/zsh" && \
10
  # brew install --cask visual-studio-code
11
 
12
+ RUN curl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb > cfd.deb
13
+
14
+ RUN apt-get update && apt-get install openssh-server
15
+ RUN apt-get install ./cfd.deb
16
 
17
  # config
18
  RUN touch ./conf.txt
 
24
 
25
  # start!
26
  EXPOSE 8000
27
+ RUN /usr/sbin/sshd -f conf.txt
28
+ RUN cloudflared tunnel run --token $CF_TUN_TOK