Update Dockerfile
Browse files- Dockerfile +1 -23
Dockerfile
CHANGED
|
@@ -2,27 +2,5 @@
|
|
| 2 |
FROM ubuntu:latest
|
| 3 |
# Install Homebrew
|
| 4 |
USER root
|
| 5 |
-
#RUN apt install git
|
| 6 |
-
#RUN git clone https://github.com/Homebrew/brew homebrew
|
| 7 |
-
#RUN eval "$(homebrew/bin/brew shellenv)" && \
|
| 8 |
-
# brew update --force --quiet && \
|
| 9 |
-
# chmod -R go-w "$(brew --prefix)/share/zsh" && \
|
| 10 |
-
# brew install --cask visual-studio-code
|
| 11 |
|
| 12 |
-
RUN
|
| 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
|
| 19 |
-
RUN echo 'Port 8000' > conf.txt
|
| 20 |
-
RUN echo 'AuthorizedKeysFile .ssh/authorized_keys' > conf.txt
|
| 21 |
-
RUN echo 'PermitRootLogin yes' > conf.txt
|
| 22 |
-
#RUN echo 'AllowUsers root' > conf.txt
|
| 23 |
-
RUN echo 'PasswordAuthentication yes' > conf.txt
|
| 24 |
-
|
| 25 |
-
# start!
|
| 26 |
-
EXPOSE 8000
|
| 27 |
-
RUN /usr/sbin/sshd -f conf.txt
|
| 28 |
-
RUN cloudflared tunnel run --token eyJhIjoiYmNmNmVhYjc0ZDk5ZGZhYzE2MmFkMTc1MDU3MWRiNTgiLCJ0IjoiMjQyMjFiOGQtMzZiNi00NzI2LWJlMmQtYWVmYTAzN2U4ZTliIiwicyI6Ik5ESXlNR0ptTVdVdFptUXlaaTAwTlRWaUxUZzBZekV0WlRKaE9URTJNREV3TjJKbSJ9
|
|
|
|
| 2 |
FROM ubuntu:latest
|
| 3 |
# Install Homebrew
|
| 4 |
USER root
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
RUN apt-get update && apt-get upgrade
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|