aripbae commited on
Commit
7a6fee8
·
verified ·
1 Parent(s): 7a3d7c8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -12
Dockerfile CHANGED
@@ -2,20 +2,33 @@ 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 unzip tmux micro fastfetch font-noto \
6
- python3 py3-pip npm
7
- RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
8
- RUN ln -sf /usr/bin/python3 /usr/bin/python
9
 
10
- RUN echo "set -g mouse on" > /root/.tmux.conf && \
11
- echo "set -g status-position top" >> /root/.tmux.conf && \
12
- echo "set -g base-index 1" >> /root/.tmux.conf && \
13
- echo "set -g pane-base-index 1" >> /root/.tmux.conf
 
 
 
14
 
 
 
 
 
15
  RUN mkdir -p /root/.config/micro && \
16
  echo '{"mouse": true, "colorscheme": "simple"}' > /root/.config/micro/settings.json
 
 
 
 
 
 
 
17
 
18
- RUN echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /root/.bashrc
19
  RUN echo 'events {} http { \
20
  server { \
21
  listen 7860; \
@@ -32,9 +45,9 @@ RUN echo 'events {} http { \
32
  } \
33
  }' > /etc/nginx/nginx.conf
34
 
35
- WORKDIR /
36
  RUN mkdir -p /etc/nginx/logs /run/nginx
37
 
38
- CMD filebrowser -p 8080 -r / --noauth -d /tmp/filebrowser.db & \
39
- ttyd -p 7681 -W -b /term tmux new -A -s main & \
40
  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 unzip tmux micro font-noto \
6
+ python3 py3-pip \
7
+ npm \
8
+ build-base cairo-dev pango-dev libjpeg-turbo-dev giflib-dev librsvg-dev
9
 
10
+ RUN curl -fsS https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
11
+
12
+ RUN curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch -o /usr/local/bin/neofetch && \
13
+ chmod +x /usr/local/bin/neofetch
14
+
15
+ RUN echo -e "#!/bin/sh\necho akkun" > /usr/local/bin/hostname && \
16
+ chmod +x /usr/local/bin/hostname
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 && \
28
+ echo "set -g pane-base-index 1" >> /root/.tmux.conf && \
29
+ echo "setw -g aggressive-resize on" >> /root/.tmux.conf && \
30
+ echo "set-option -g default-shell /bin/bash" >> /root/.tmux.conf
31
 
 
32
  RUN echo 'events {} http { \
33
  server { \
34
  listen 7860; \
 
45
  } \
46
  }' > /etc/nginx/nginx.conf
47
 
48
+ 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 -t fontSize=13 -t rendererType=canvas -b /term tmux new -A -s main & \
53
  nginx -c /etc/nginx/nginx.conf -g 'daemon off;'