mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 07:29:38 -05:00
Remove go workspace files from dockerfiles
This commit is contained in:
parent
05304d081e
commit
fd3008f5cc
@ -15,14 +15,11 @@ ENV PATH ${PATH}:/usr/local/go/bin
|
|||||||
WORKDIR /constellation/
|
WORKDIR /constellation/
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
COPY go.sum ./
|
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
|
RUN go mod download all
|
||||||
|
|
||||||
# Copy Repo
|
# Copy Repo
|
||||||
COPY . /constellation
|
COPY . /constellation
|
||||||
|
RUN rm -rf ./hack/
|
||||||
|
|
||||||
FROM build AS build-coordinator
|
FROM build AS build-coordinator
|
||||||
WORKDIR /constellation/coordinator/
|
WORKDIR /constellation/coordinator/
|
||||||
|
@ -17,7 +17,7 @@ RUN go mod download all
|
|||||||
|
|
||||||
# Copy Repo
|
# Copy Repo
|
||||||
COPY . /constellation
|
COPY . /constellation
|
||||||
RUN rm -rf ./hack/ go.work.sum go.work
|
RUN rm -rf ./hack/
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
RUN mkdir -p /constellation/build
|
RUN mkdir -p /constellation/build
|
||||||
|
Loading…
Reference in New Issue
Block a user