build: move httpserver main.go to ./cmd/httpserver
This commit is contained in:
parent
0c9cbc9d7a
commit
ef8b2fac2f
2 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ COPY . .
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o yggdrasil ./cmd/yggdrasil
|
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o yggdrasil-httpserver ./cmd/httpserver
|
||||||
|
|
||||||
FROM alpine:${ALPINE_VERSION} AS runtime
|
FROM alpine:${ALPINE_VERSION} AS runtime
|
||||||
|
|
||||||
|
|
@ -26,6 +26,6 @@ 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/api ./api
|
||||||
COPY --from=builder /build/yggdrasil .
|
COPY --from=builder /build/yggdrasil-httpserver .
|
||||||
|
|
||||||
CMD ["/srv/yggdrasil"]
|
CMD ["/srv/yggdrasil-httpserver"]
|
||||||
|
|
|
||||||
Reference in a new issue