Skip to content

Commit

Permalink
added commands to image
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstromviktor committed Feb 21, 2024
1 parent 730b546 commit 5439902
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion serve-filemanager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ ARG HOME=/home/$USER
COPY filebrowser.json /.filebrowser.json

COPY startup.sh /usr/local/bin/startup.sh
RUN apk update \
RUN apk add --update --no-cache \

Check failure on line 9 in serve-filemanager/Dockerfile

View workflow job for this annotation

GitHub Actions / lint

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`
wget \
zip \
unzip \
&& adduser -D -u 1000 -g 1000 -h $HOME $USER \
&& chmod +x /usr/local/bin/startup.sh \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion serve-filemanager/startup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/ash

/filebrowser config init
/filebrowser users add $FB_USERNAME $FB_PASSWORD --commands "mv,ls,mkdir,cp,rm,touch,cd,gzip"
/filebrowser users add $FB_USERNAME $FB_PASSWORD --commands "pwd,mv,ls,mkdir,cp,rm,rmdir,touch,sed,grep,cat,zip,unzip,wget,"
/filebrowser config set --branding.name "Serve File Manager" --branding.files "/home/serve/branding" --branding.disableExternal
/filebrowser config set --auth.method=noauth
/filebrowser

0 comments on commit 5439902

Please sign in to comment.