From 66863b72f7664e6cb9417f7da542a92fa77ca635 Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Tue, 16 Jun 2020 22:48:07 +0200 Subject: [PATCH] feat: add alpine and debian docker images --- .goreleaser.yml | 26 ++++++++++++++++++++++++++ Dockerfile.alpine | 11 +++++++++++ Dockerfile.debian | 9 +++++++++ 3 files changed, 46 insertions(+) create mode 100644 Dockerfile.alpine create mode 100644 Dockerfile.debian diff --git a/.goreleaser.yml b/.goreleaser.yml index 97588e83..5db4029a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -79,3 +79,29 @@ dockers: - "filebrowser/filebrowser:v{{ .Major }}-pi" extra_files: - .docker.json + - + dockerfile: Dockerfile.alpine + binaries: + - filebrowser + goos: linux + goarch: amd64 + goarm: '' + image_templates: + - "filebrowser/filebrowser:alpine" + - "filebrowser/filebrowser:{{ .Tag }}-apline" + - "filebrowser/filebrowser:v{{ .Major }}-alpine" + extra_files: + - .docker.json + - + dockerfile: Dockerfile.debian + binaries: + - filebrowser + goos: linux + goarch: amd64 + goarm: '' + image_templates: + - "filebrowser/filebrowser:debian" + - "filebrowser/filebrowser:{{ .Tag }}-debian" + - "filebrowser/filebrowser:v{{ .Major }}-debian" + extra_files: + - .docker.json diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 00000000..e5d35107 --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,11 @@ +FROM alpine:latest as alpine +RUN apk --update add ca-certificates +RUN apk --update add mailcap + +VOLUME /srv +EXPOSE 80 + +COPY .docker.json /.filebrowser.json +COPY filebrowser /filebrowser + +ENTRYPOINT [ "/filebrowser" ] diff --git a/Dockerfile.debian b/Dockerfile.debian new file mode 100644 index 00000000..42f120d5 --- /dev/null +++ b/Dockerfile.debian @@ -0,0 +1,9 @@ +FROM debian:buster + +VOLUME /srv +EXPOSE 80 + +COPY .docker.json /.filebrowser.json +COPY filebrowser /filebrowser + +ENTRYPOINT [ "/filebrowser" ]