mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 22:09:07 +02:00
18 lines
394 B
Plaintext
18 lines
394 B
Plaintext
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN go get ./...
|
|
|
|
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" ] |