Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lmquang committed Apr 13, 2023
1 parent 1b3be0f commit fa08327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM surnet/alpine-wkhtmltopdf:3.10-0.12.5-full as wkhtmltopdf
FROM surnet/alpine-wkhtmltopdf:3.17.0-0.12.6-full as wkhtmltopdf

FROM golang:1.18-alpine as builder
RUN mkdir /build
Expand All @@ -9,7 +9,7 @@ ENV GOOS=linux GOARCH=amd64 CGO_ENABLED=0
RUN go install -v ./...
RUN go install -v github.com/rubenv/sql-migrate/sql-migrate@latest

FROM alpine:3.15
FROM alpine:3.17.3

RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo http://dl-cdn.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
Expand Down
2 changes: 1 addition & 1 deletion pkg/handler/invoice/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (h *handler) Send(c *gin.Context) {
iv.Number = *nextInvoiceNumber

if err := h.generateInvoicePDF(l, iv); err != nil {
l.Error(err, "failed to get next invoice Number")
l.Error(err, "failed to generate Invoice PDF")
c.JSON(http.StatusInternalServerError, view.CreateResponse[any](nil, nil, err, req, ""))
return
}
Expand Down

0 comments on commit fa08327

Please sign in to comment.