diff --git a/Dockerfile b/Dockerfile index 8a6f3894c..22ca22279 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ ARG TARGETOS ARG TARGETVARIANT COPY dist/shiori_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}/shiori /usr/bin/shiori RUN apk add --no-cache ca-certificates tzdata && \ - chmod +x /usr/bin/shiori + chmod +x /usr/bin/shiori && \ + rm -rf /tmp/* # Server image FROM scratch @@ -20,6 +21,7 @@ WORKDIR ${SHIORI_DIR} LABEL org.opencontainers.image.source="https://github.com/go-shiori/shiori" LABEL maintainer="Felipe Martin " +COPY --from=builder /tmp /tmp COPY --from=builder /usr/bin/shiori /usr/bin/shiori COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt diff --git a/internal/http/routes/api/v1/bookmarks.go b/internal/http/routes/api/v1/bookmarks.go index fab06d06b..f1a97ed88 100644 --- a/internal/http/routes/api/v1/bookmarks.go +++ b/internal/http/routes/api/v1/bookmarks.go @@ -217,6 +217,11 @@ func (r *BookmarksAPIRoutes) updateCache(c *gin.Context) { content.Close() if err != nil { + r.logger.WithFields(logrus.Fields{ + "bookmark_id": book.ID, + "url": book.URL, + "error": err, + }).Error("error downloading bookmark cache") chProblem <- book.ID return }