from golang:1.15.0 RUN mkdir /pskreporter_exporter ADD . /pskreporter_exporter WORKDIR /pskreporter_exporter/cmd/pskreporter_exporter RUN go build CMD ["/pskreporter_exporter/cmd/pskreporter_exporter/pskreporter_exporter"]