Skip to content

Commit

Permalink
chore: adds Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 18, 2019
1 parent 923f5da commit 2662b08
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
dist/
vendor/
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM golang:alpine3.8 as builder

RUN apk --update upgrade \
&& apk --no-cache --no-progress add make git gcc musl-dev \
&& rm -rf /var/cache/apk/*

WORKDIR /go/src/github.com/ldez/gha-mjolnir
COPY . .
RUN make build

FROM alpine:3.8
RUN apk update && apk add --no-cache --virtual ca-certificates
COPY --from=builder /go/src/github.com/ldez/gha-mjolnir/mjolnir /usr/bin/mjolnir

LABEL "name"="Mjolnir"
LABEL "com.github.actions.name"="Closes issues related to a merged pull request."
LABEL "com.github.actions.description"="This is an Action to close issues related to a merged pull request."
LABEL "com.github.actions.icon"="package"
LABEL "com.github.actions.color"="green"

LABEL "repository"="http://github.com/ldez/gha-mjolnir"
LABEL "homepage"="http://github.com/ldez/gha-mjolnir"
LABEL "maintainer"="ldez <[email protected]>"

ENTRYPOINT [ "/usr/bin/mjolnir" ]

0 comments on commit 2662b08

Please sign in to comment.