forked from massivebox/ecodash
14 lines
217 B
Docker
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"] |