build: move Dockerfile for httpserver to build/ dir
This commit is contained in:
parent
4814883454
commit
4c7f1c2aec
1 changed files with 6 additions and 6 deletions
|
|
@ -6,13 +6,13 @@ FROM --platform=${BUILDPLATFORM} golang:1.22-alpine${ALPINE_VERSION} AS builder
|
|||
|
||||
ARG BUILDPLATFORM
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /build
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
COPY ../../../go.mod go.sum ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
COPY ../../.. .
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
|
@ -21,10 +21,10 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o yggdrasil ./cmd/
|
|||
|
||||
FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /srv
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
COPY --from=builder /app/yggdrasil .
|
||||
COPY --from=builder /build/yggdrasil .
|
||||
|
||||
CMD ["/app/yggdrasil"]
|
||||
CMD ["/srv/yggdrasil"]
|
||||
Reference in a new issue