Add docker build

This commit is contained in:
Denis Zheleztsov 2020-03-03 15:22:13 +03:00
parent 4f8607e2f7
commit fadc556cf8
Signed by: Difrex
GPG Key ID: 41CF5135CF7FADB3

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM golang:latest AS builder
COPY . /fetcher
WORKDIR /fetcher
ENV CGO_ENABLED=0
RUN go build -o /usr/local/bin/fetcher
FROM alpine:latest
COPY --from=builder /usr/local/bin/fetcher /usr/local/bin/fetcher
RUN apk update && apk add ca-certificates
USER nobody