fix folder name for db adapter

This commit is contained in:
2025-03-27 22:09:34 +01:00
parent a56454110a
commit 46077870c3
50 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
FROM --platform=$BUILDPLATFORM golang:alpine AS build
WORKDIR /app
COPY . .
RUN go get ./...
RUN go generate ./...
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o db-adapter
RUN apk update && apk add ca-certificates && update-ca-certificates
FROM --platform=$TARGETPLATFORM busybox:1.36.1
COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /app/db-adapter /app/
CMD [ "/app/db-adapter" ]