1
0
Fork 0

build: move httpserver main.go to ./cmd/httpserver

This commit is contained in:
Vojtěch Mareš 2024-06-27 20:35:32 +02:00
parent 0c9cbc9d7a
commit ef8b2fac2f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ COPY . .
ARG TARGETOS
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
@ -26,6 +26,6 @@ WORKDIR /srv
RUN apk add --no-cache ca-certificates
COPY --from=builder /build/api ./api
COPY --from=builder /build/yggdrasil .
COPY --from=builder /build/yggdrasil-httpserver .
CMD ["/srv/yggdrasil"]
CMD ["/srv/yggdrasil-httpserver"]