Skip to content

Commit

Permalink
Merge pull request #23 from tigrulya-exe/update-dockerfile
Browse files Browse the repository at this point in the history
Added runtime stage in Dockerfile
  • Loading branch information
denis-tingaikin authored Nov 12, 2020
2 parents 5aee008 + 953cb01 commit 90bc351
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ ENV NSM_DEVICEPLUGINPATH=/build/k8s-stub/device-plugins
RUN mkdir -p ./k8s-stub/pod-resources
ENV NSM_PODRESOURCESPATH=/build/k8s-stub/pod-resources
CMD ["/bin/bash", "-c", "./k8s_api_stub > k8s_api_stub.out & go test -test.v ./..."]

FROM alpine as runtime
COPY --from=build /bin/forwarder /bin/forwarder
COPY --from=build /bin/dlv /bin/dlv
CMD /bin/forwarder

0 comments on commit 90bc351

Please sign in to comment.