From 7358b3fe3178c20007b4b5ef5c03705badd538c4 Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Sun, 7 Mar 2021 15:23:12 +0100 Subject: [PATCH] fix: add missing default config into the docker image --- .docker.json | 8 ++++++++ .goreleaser.yml | 8 ++++++++ Dockerfile | 1 + 3 files changed, 17 insertions(+) create mode 100644 .docker.json diff --git a/.docker.json b/.docker.json new file mode 100644 index 00000000..f0fa64a6 --- /dev/null +++ b/.docker.json @@ -0,0 +1,8 @@ +{ + "port": 80, + "baseURL": "", + "address": "", + "log": "stdout", + "database": "/database.db", + "root": "/srv" +} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 2e304b0f..bb09d2c6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -59,6 +59,8 @@ dockers: image_templates: - "filebrowser/filebrowser:{{ .Tag }}-amd64" - "filebrowser/filebrowser:v{{ .Major }}-amd64" + extra_files: + - .docker.json - dockerfile: Dockerfile use_buildx: true @@ -75,6 +77,8 @@ dockers: image_templates: - "filebrowser/filebrowser:{{ .Tag }}-arm64" - "filebrowser/filebrowser:v{{ .Major }}-arm64" + extra_files: + - .docker.json - dockerfile: Dockerfile use_buildx: true @@ -92,6 +96,8 @@ dockers: image_templates: - "filebrowser/filebrowser:{{ .Tag }}-armv6" - "filebrowser/filebrowser:v{{ .Major }}-armv6" + extra_files: + - .docker.json - dockerfile: Dockerfile use_buildx: true @@ -109,6 +115,8 @@ dockers: image_templates: - "filebrowser/filebrowser:{{ .Tag }}-armv7" - "filebrowser/filebrowser:v{{ .Major }}-armv7" + extra_files: + - .docker.json docker_manifests: - name_template: "filebrowser/filebrowser:latest" image_templates: diff --git a/Dockerfile b/Dockerfile index 597b6db0..98700278 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN apk --update add mailcap VOLUME /srv EXPOSE 80 +COPY .docker.json /.filebrowser.json COPY filebrowser /filebrowser ENTRYPOINT [ "/filebrowser" ] \ No newline at end of file