Skip to content

Commit

Permalink
fix docker file issues
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Jun 23, 2020
1 parent f4531f5 commit b1db1ba
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ RUN go run github.com/edwarnicke/dl \
FROM go as build
WORKDIR /build
COPY go.mod go.sum ./
COPY ./local ./local
COPY pkg ./internal/imports
RUN go build ./internal/imports
COPY pkg ./pkg
RUN go build ./pkg/imports
COPY . .
RUN go build -o /bin/nsmgr .
RUN go build -o /bin/registry-memory .

FROM build as test
CMD go test -test.v ./...
Expand All @@ -23,5 +22,5 @@ FROM test as debug
CMD dlv -l :40000 --headless=true --api-version=2 test -test.v ./...

FROM alpine as runtime
COPY --from=build /bin/nsmgr /bin/nsmgr
CMD /bin/nsmgr
COPY --from=build /bin/registry-memory /bin/registry-memory
CMD /bin/registry-memory

0 comments on commit b1db1ba

Please sign in to comment.