1
0
Fork 0

chore(build): copy openapi.yaml file to the built image

This commit is contained in:
Vojtěch Mareš 2024-06-25 07:57:16 +02:00
parent daedf8af04
commit 6a38994190
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -8,11 +8,11 @@ ARG BUILDPLATFORM
WORKDIR /build
COPY ../../../go.mod go.sum ./
COPY go.mod go.sum ./
RUN go mod download
COPY ../../.. .
COPY . .
ARG TARGETOS
ARG TARGETARCH
@ -25,6 +25,7 @@ WORKDIR /srv
RUN apk add --no-cache ca-certificates
COPY --from=builder /build/api ./api
COPY --from=builder /build/yggdrasil .
CMD ["/srv/yggdrasil"]