chore(build): copy openapi.yaml file to the built image
This commit is contained in:
parent
daedf8af04
commit
6a38994190
1 changed files with 3 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Reference in a new issue