generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
47356f7
commit f6cebc9
Showing
1 changed file
with
36 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,36 @@ | ||
# | ||
# OCI Secrets Store CSI Driver Provider | ||
# | ||
# Copyright (c) 2022 Oracle America, Inc. and its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ | ||
# | ||
|
||
FROM golang:1.19 as build | ||
|
||
WORKDIR /provider-src | ||
|
||
# Copy provider sources | ||
COPY go.mod go.sum Makefile ./ | ||
COPY cmd ./cmd | ||
COPY internal ./internal | ||
COPY vendor ./vendor | ||
|
||
# Build provider | ||
RUN make test build | ||
|
||
FROM oraclelinux:7-slim | ||
|
||
LABEL author="OKE Foundations Team" | ||
|
||
COPY --from=build /provider-src/dist/provider /opt/provider/bin/provider | ||
|
||
# copy license files | ||
COPY LICENSE.txt /opt/provider/licenses/LICENSE.txt | ||
COPY THIRD_PARTY_LICENSES.txt /opt/provider/licenses/THIRD_PARTY_LICENSES.txt | ||
|
||
# Note that the provider container should run as root in order to | ||
# mount the Kubernetes hostPath volume and create Unix Domain Socket in that volume. | ||
|
||
WORKDIR /opt/provider | ||
|
||
ENTRYPOINT ["/opt/provider/bin/provider"] |