init api implementations

This commit is contained in:
2025-03-24 21:41:33 +01:00
parent d9d565e0ee
commit 267285c356
46 changed files with 1047 additions and 679 deletions

View File

@@ -6,13 +6,15 @@ COPY . .
RUN go get ./...
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o backend
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/backend /app/
COPY --from=build /app/db-adapter /app/
CMD [ "/app/backend" ]
CMD [ "/app/db-adapter" ]