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
|
WORKDIR /build
|
||||||
|
|
||||||
COPY ../../../go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY ../../.. .
|
COPY . .
|
||||||
|
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
@ -25,6 +25,7 @@ WORKDIR /srv
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
|
COPY --from=builder /build/api ./api
|
||||||
COPY --from=builder /build/yggdrasil .
|
COPY --from=builder /build/yggdrasil .
|
||||||
|
|
||||||
CMD ["/srv/yggdrasil"]
|
CMD ["/srv/yggdrasil"]
|
||||||
|
|
|
||||||
Reference in a new issue