ecodash/Dockerfile

14 lines
217 B
Docker
Raw Normal View History

2022-10-15 17:58:44 +00:00
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"]