Skip to content

Commit 8d6041e

Browse files
adding missing Dockerfile
1 parent f16f442 commit 8d6041e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

build/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# OCI Secrets Store CSI Driver Provider
3+
#
4+
# Copyright (c) 2022 Oracle America, Inc. and its affiliates.
5+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
6+
#
7+
8+
FROM golang:1.19 as build
9+
10+
WORKDIR /provider-src
11+
12+
# Copy provider sources
13+
COPY go.mod go.sum Makefile ./
14+
COPY cmd ./cmd
15+
COPY internal ./internal
16+
COPY vendor ./vendor
17+
18+
# Build provider
19+
RUN make test build
20+
21+
FROM oraclelinux:7-slim
22+
23+
LABEL author="OKE Foundations Team"
24+
25+
COPY --from=build /provider-src/dist/provider /opt/provider/bin/provider
26+
27+
# copy license files
28+
COPY LICENSE.txt /opt/provider/licenses/LICENSE.txt
29+
COPY THIRD_PARTY_LICENSES.txt /opt/provider/licenses/THIRD_PARTY_LICENSES.txt
30+
31+
# Note that the provider container should run as root in order to
32+
# mount the Kubernetes hostPath volume and create Unix Domain Socket in that volume.
33+
34+
WORKDIR /opt/provider
35+
36+
ENTRYPOINT ["/opt/provider/bin/provider"]

0 commit comments

Comments
 (0)