Turns out HomeAssistant only returns 10 days'data byault. This is a problem that we will havsoon. Now the cache doesn't reset eh time it only if some data is missing.
14 lines
217 B
Docker
Executable file
14 lines
217 B
Docker
Executable file
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"] |