Add Containerfile
This commit is contained in:
parent
7fc3740f3f
commit
7ad26b1fe1
1 changed files with 14 additions and 0 deletions
14
Containerfile
Normal file
14
Containerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM golang:alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /go/src/git.zio.sh/gearheads/webfinger
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk update && \
|
||||||
|
go get -d -v ./... && \
|
||||||
|
go install
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /go/bin/webfinger /usr/local/bin/webfinger
|
||||||
|
|
||||||
|
CMD ["webfinger"]
|
Loading…
Add table
Add a link
Reference in a new issue