Remove go workspace files from dockerfiles

This commit is contained in:
katexochen 2022-06-01 12:34:56 +02:00 committed by Paul Meyer
parent 05304d081e
commit fd3008f5cc
2 changed files with 2 additions and 5 deletions

View File

@ -15,14 +15,11 @@ ENV PATH ${PATH}:/usr/local/go/bin
WORKDIR /constellation/
COPY go.mod ./
COPY go.sum ./
COPY go.work ./
COPY go.work.sum ./
COPY hack/go.mod ./hack/go.mod
COPY hack/go.sum ./hack/go.sum
RUN go mod download all
# Copy Repo
COPY . /constellation
RUN rm -rf ./hack/
FROM build AS build-coordinator
WORKDIR /constellation/coordinator/

View File

@ -17,7 +17,7 @@ RUN go mod download all
# Copy Repo
COPY . /constellation
RUN rm -rf ./hack/ go.work.sum go.work
RUN rm -rf ./hack/
# Build
RUN mkdir -p /constellation/build