Skip to content

Commit 326c2a5

Browse files
Merge pull request #4 from gbraad/gotoolset-image
Add containerized build using go-toolset
2 parents ef5c134 + 89107b6 commit 326c2a5

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ lint:
1818

1919
.PHONY: image
2020
image:
21-
${CONTAINER_RUNTIME} build -t quay.io/crcont/routes-controller:$(TAG) .
21+
${CONTAINER_RUNTIME} build -t quay.io/crcont/routes-controller:$(TAG) -f images .

images/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM registry.access.redhat.com/ubi8/go-toolset:1.14.12 AS build
2+
WORKDIR $APP_ROOT/src
3+
COPY . .
4+
RUN make
5+
6+
FROM scratch
7+
COPY --from=build /opt/app-root/src/routes-controller .
8+
ENTRYPOINT ["/routes-controller"]

0 commit comments

Comments
 (0)