dockerfile
This commit is contained in:
parent
325aa7a9eb
commit
ee9cd0e19c
|
@ -0,0 +1,13 @@
|
|||
FROM golang:1.20-bullseye as build
|
||||
RUN apt update && apt install -y libolm3 libolm-dev
|
||||
|
||||
WORKDIR /src
|
||||
COPY . ./
|
||||
RUN go mod download
|
||||
RUN go build -o /matrix-feedreader ./main.go
|
||||
|
||||
FROM debian:bullseye
|
||||
RUN apt update && apt install -y libolm3 ca-certificates openssl
|
||||
|
||||
COPY --from=build /matrix-feedreader /matrix-feedreader
|
||||
CMD /matrix-feedreader
|
|
@ -0,0 +1,4 @@
|
|||
docker-push:
|
||||
docker build . -t matrix-bots
|
||||
docker tag matrix-bots registry.ewintr.nl/matrix-feedreader
|
||||
docker push registry.ewintr.nl/matrix-feedreader
|
|
@ -36,7 +36,7 @@ func NewMiniflux(mflInfo MinifluxInfo, logger *slog.Logger) *Miniflux {
|
|||
}
|
||||
|
||||
func (m *Miniflux) Run() {
|
||||
ticker := time.NewTicker(5 * time.Second)
|
||||
ticker := time.NewTicker(5 * time.Minute)
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
|
|
Loading…
Reference in New Issue