Skip to content

Commit

Permalink
adding missing Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rajashekhargundeti committed Aug 25, 2023
1 parent 47356f7 commit f6cebc9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions build/Dockerfile
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"]

0 comments on commit f6cebc9

Please sign in to comment.