Upstream sync

This commit is contained in:
Senad Uka
2023-10-13 11:48:14 +02:00
parent 7369739bdd
commit d01c1a0232
29 changed files with 563 additions and 444 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# Builder image
FROM --platform=linux/amd64 golang:1.21 as builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -mod=readonly -v -o pactual-backend main.go
# Runtime image
FROM --platform=linux/amd64 golang:1.21
WORKDIR /app
COPY --from=builder /src/pactual-backend .
CMD ["/app/pactual-backend"]