add Dockerfile

This commit is contained in:
an 2021-04-21 12:18:41 +02:00
parent 4b7ae0ef92
commit acf57aa686
2 changed files with 14 additions and 1 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM golang:latest
MAINTAINER Andreas Neue <an@dnix.de>
RUN apt -y update && apt -y upgrade && apt-get install -y fortune vim tzdata ca-certificates && apt-get clean
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
WORKDIR /go/src/covid-exporter
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
CMD ["covid-exporter"]