-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use linuxserver based docker image
- Loading branch information
Showing
9 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
* | ||
!.docker.json | ||
!docker/* | ||
!filebrowser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
FROM alpine:latest | ||
FROM ghcr.io/linuxserver/baseimage-alpine:3.14 | ||
|
||
RUN apk --update add ca-certificates \ | ||
mailcap \ | ||
curl | ||
|
||
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \ | ||
CMD curl -f http://localhost/health || exit 1 | ||
|
||
VOLUME /srv | ||
EXPOSE 80 | ||
|
||
COPY .docker.json /.filebrowser.json | ||
COPY filebrowser /filebrowser | ||
# copy local files | ||
COPY docker/root/ / | ||
COPY filebrowser /usr/bin/filebrowser | ||
|
||
ENTRYPOINT [ "/filebrowser" ] | ||
# ports and volumes | ||
VOLUME /srv /config /database | ||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.14 | ||
|
||
RUN apk --update add ca-certificates \ | ||
mailcap \ | ||
curl | ||
|
||
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \ | ||
CMD curl -f http://localhost/health || exit 1 | ||
|
||
# copy local files | ||
COPY docker/root/ / | ||
COPY filebrowser /usr/bin/filebrowser | ||
|
||
# ports and volumes | ||
VOLUME /srv /config /database | ||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.14 | ||
|
||
RUN apk --update add ca-certificates \ | ||
mailcap \ | ||
curl | ||
|
||
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \ | ||
CMD curl -f http://localhost/health || exit 1 | ||
|
||
# copy local files | ||
COPY docker/root/ / | ||
COPY filebrowser /usr/bin/filebrowser | ||
|
||
# ports and volumes | ||
VOLUME /srv /config /database | ||
EXPOSE 80 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
# make folders | ||
mkdir -p /database | ||
|
||
# copy config | ||
if [ ! -f "/config/settings.json" ]; then | ||
cp -a /defaults/settings.json /config/settings.json | ||
fi | ||
|
||
# permissions | ||
chown abc:abc \ | ||
/config/settings.json \ | ||
/database \ | ||
/srv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
exec s6-setuidgid abc filebrowser -c /config/settings.json -d /database/filebrowser.db; |