From 16c1b2ad870bc2cb1469f48ff021e75a72df2a85 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Sun, 28 Jul 2019 07:30:23 -0700 Subject: [PATCH] Add Dockerfile --- .goreleaser.yml | 14 +++++++++----- Dockerfile | 3 +++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/.goreleaser.yml b/.goreleaser.yml index 89563223..5c44eded 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,9 +2,8 @@ env: - GO111MODULE=on - GOPROXY="https://gocenter.io" -before: - hooks: - - make install +archive: + wrap_in_directory: true builds: - binary: wtfutil @@ -15,6 +14,10 @@ builds: - 386 - amd64 +before: + hooks: + - make install + brews: - github: owner: wtfutil @@ -24,5 +27,6 @@ brews: homepage: 'https://wtfutil.com' description: 'The personal information dashboard for your terminal.' -archive: - wrap_in_directory: true +dockers: + - image_templates: + - wtfutil/wtf \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..ba4d7007 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM scratch +COPY mybin / +ENTRYPOINT ["/wtfutil"] \ No newline at end of file