ecodash/Dockerfile
2022-10-15 19:58:44 +02:00

14 lines
217 B
Docker

FROM golang:1.19
RUN mkdir -p /app
WORKDIR /app
ADD . /app
RUN rm -rf go.mod go.sum config.json cache.json; \
touch config.json; \
go mod init ecodash; \
go mod tidy
RUN go build -o app .
CMD ["./app"]