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