File tree Expand file tree Collapse file tree
internal/http/routes/api/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ ARG TARGETOS
88ARG TARGETVARIANT
99COPY dist/shiori_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}/shiori /usr/bin/shiori
1010RUN apk add --no-cache ca-certificates tzdata && \
11- chmod +x /usr/bin/shiori
11+ chmod +x /usr/bin/shiori && \
12+ rm -rf /tmp/*
1213
1314# Server image
1415FROM scratch
@@ -20,6 +21,7 @@ WORKDIR ${SHIORI_DIR}
2021LABEL org.opencontainers.image.source="https://github.com/go-shiori/shiori"
2122LABEL maintainer="Felipe Martin <github@fmartingr.com>"
2223
24+ COPY --from=builder /tmp /tmp
2325COPY --from=builder /usr/bin/shiori /usr/bin/shiori
2426COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
2527COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
Original file line number Diff line number Diff line change @@ -217,6 +217,11 @@ func (r *BookmarksAPIRoutes) updateCache(c *gin.Context) {
217217 content .Close ()
218218
219219 if err != nil {
220+ r .logger .WithFields (logrus.Fields {
221+ "bookmark_id" : book .ID ,
222+ "url" : book .URL ,
223+ "error" : err ,
224+ }).Error ("error downloading bookmark cache" )
220225 chProblem <- book .ID
221226 return
222227 }
You can’t perform that action at this time.
0 commit comments