Skip to content

Commit

Permalink
Merge pull request #4 from gbraad/gotoolset-image
Browse files Browse the repository at this point in the history
Add containerized build using go-toolset
  • Loading branch information
guillaumerose authored Feb 10, 2021
2 parents ef5c134 + 89107b6 commit 326c2a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ lint:

.PHONY: image
image:
${CONTAINER_RUNTIME} build -t quay.io/crcont/routes-controller:$(TAG) .
${CONTAINER_RUNTIME} build -t quay.io/crcont/routes-controller:$(TAG) -f images .
8 changes: 8 additions & 0 deletions images/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM registry.access.redhat.com/ubi8/go-toolset:1.14.12 AS build
WORKDIR $APP_ROOT/src
COPY . .
RUN make

FROM scratch
COPY --from=build /opt/app-root/src/routes-controller .
ENTRYPOINT ["/routes-controller"]

0 comments on commit 326c2a5

Please sign in to comment.