Update Dockerfile
Browse files- Dockerfile +11 -12
Dockerfile
CHANGED
|
@@ -2,26 +2,25 @@ FROM alpine:edge
|
|
| 2 |
|
| 3 |
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
|
| 4 |
apk add --no-cache \
|
| 5 |
-
nginx ttyd bash curl
|
| 6 |
-
python3 py3-pip \
|
| 7 |
npm \
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
RUN curl -
|
| 11 |
|
| 12 |
-
RUN curl -
|
| 13 |
chmod +x /usr/local/bin/neofetch
|
| 14 |
|
| 15 |
-
RUN
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
RUN echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /root/.bashrc && \
|
| 19 |
echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/profile
|
| 20 |
|
| 21 |
-
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
| 22 |
-
RUN mkdir -p /root/.config/micro && \
|
| 23 |
-
echo '{"mouse": true, "colorscheme": "simple"}' > /root/.config/micro/settings.json
|
| 24 |
-
|
| 25 |
RUN echo "set -g mouse on" > /root/.tmux.conf && \
|
| 26 |
echo "set -g status-position top" >> /root/.tmux.conf && \
|
| 27 |
echo "set -g base-index 1" >> /root/.tmux.conf && \
|
|
@@ -49,5 +48,5 @@ WORKDIR /root
|
|
| 49 |
RUN mkdir -p /etc/nginx/logs /run/nginx
|
| 50 |
|
| 51 |
CMD filebrowser -p 8080 -r /root --noauth -d /tmp/filebrowser.db & \
|
| 52 |
-
ttyd -p 7681 -W -
|
| 53 |
nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|
|
|
|
| 2 |
|
| 3 |
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
|
| 4 |
apk add --no-cache \
|
| 5 |
+
nginx ttyd bash curl wget git jq \
|
|
|
|
| 6 |
npm \
|
| 7 |
+
cairo pango libjpeg-turbo giflib librsvg \
|
| 8 |
+
font-noto procps \
|
| 9 |
+
nano
|
| 10 |
|
| 11 |
+
RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
|
| 12 |
|
| 13 |
+
RUN curl -L https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch -o /usr/local/bin/neofetch && \
|
| 14 |
chmod +x /usr/local/bin/neofetch
|
| 15 |
|
| 16 |
+
RUN rm -f /bin/hostname /usr/bin/hostname && \
|
| 17 |
+
echo -e "#!/bin/sh\necho akkun" > /bin/hostname && \
|
| 18 |
+
chmod +x /bin/hostname && \
|
| 19 |
+
ln -s /bin/hostname /usr/bin/hostname
|
| 20 |
|
| 21 |
RUN echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /root/.bashrc && \
|
| 22 |
echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/profile
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
RUN echo "set -g mouse on" > /root/.tmux.conf && \
|
| 25 |
echo "set -g status-position top" >> /root/.tmux.conf && \
|
| 26 |
echo "set -g base-index 1" >> /root/.tmux.conf && \
|
|
|
|
| 48 |
RUN mkdir -p /etc/nginx/logs /run/nginx
|
| 49 |
|
| 50 |
CMD filebrowser -p 8080 -r /root --noauth -d /tmp/filebrowser.db & \
|
| 51 |
+
ttyd -p 7681 -W -b /term tmux new -A -s main & \
|
| 52 |
nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|