aripbae commited on
Commit
ab0e375
·
verified ·
1 Parent(s): 4001fe7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -25
Dockerfile CHANGED
@@ -1,33 +1,13 @@
1
- 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 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 && \
27
- echo "set -g pane-base-index 1" >> /root/.tmux.conf && \
28
- echo "setw -g aggressive-resize on" >> /root/.tmux.conf && \
29
- echo "set-option -g default-shell /bin/bash" >> /root/.tmux.conf
30
-
31
  RUN echo 'events {} http { \
32
  server { \
33
  listen 7860; \
@@ -48,5 +28,5 @@ WORKDIR /root
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;'
 
1
+ FROM node:lts-alpine
2
 
3
+ USER root
 
 
 
 
 
 
4
 
5
+ RUN apk add --no-cache nginx ttyd bash curl git \
6
+ cairo pango libjpeg-turbo giflib librsvg jq
7
  RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
8
 
 
 
 
 
 
 
 
 
9
  RUN echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /root/.bashrc && \
10
  echo "export PS1='\[\033[01;32m\]root@akkun\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/profile
 
 
 
 
 
 
 
 
11
  RUN echo 'events {} http { \
12
  server { \
13
  listen 7860; \
 
28
  RUN mkdir -p /etc/nginx/logs /run/nginx
29
 
30
  CMD filebrowser -p 8080 -r /root --noauth -d /tmp/filebrowser.db & \
31
+ ttyd -p 7681 -W -b /term bash & \
32
  nginx -c /etc/nginx/nginx.conf -g 'daemon off;'