Skip to content

Commit

Permalink
Add go-toolset build image
Browse files Browse the repository at this point in the history
Signed-off-by: Gerard Braad <me@gbraad.nl>
  • Loading branch information
gbraad committed Feb 10, 2021
1 parent f8834d7 commit 89107b6
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 89107b6

Please sign in to comment.