-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG REGISTRY | ||
ARG ARO_VERSION | ||
|
||
FROM ${REGISTRY}/ubi8/go-toolset:1.20.12-5 AS builder | ||
ARG ARO_VERSION | ||
USER root | ||
WORKDIR /app | ||
|
||
# golang config and build steps | ||
ENV GOPATH=/root/go | ||
|
||
# Copy dependencies and source files | ||
COPY go.mod go.sum ./ | ||
COPY vendor vendor | ||
COPY hack hack | ||
COPY pkg pkg | ||
|
||
# build | ||
RUN go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=${ARO_VERSION}" ./hack/tunnel | ||
|
||
FROM ${REGISTRY}/ubi8/ubi-minimal AS final | ||
RUN microdnf update && microdnf clean all | ||
COPY --from=builder /app/tunnel /usr/local/bin/ | ||
ENTRYPOINT ["tunnel"] | ||
EXPOSE 8443/tcp | ||
USER 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters