set Dockerfile to build from distroless
Signed-off-by: kmova <kiran.mova@mayadata.io>
This commit is contained in:
parent
15bc8b0423
commit
e834136851
|
|
@ -12,11 +12,10 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM alpine
|
FROM gcr.io/distroless/static:latest
|
||||||
LABEL maintainers="Kubernetes Authors"
|
LABEL maintainers="Kubernetes Authors"
|
||||||
LABEL description="NFS subdir external provisioner"
|
LABEL description="NFS subdir external provisioner"
|
||||||
ARG binary=./bin/nfs-subdir-external-provisioner
|
ARG binary=./bin/nfs-subdir-external-provisioner
|
||||||
|
|
||||||
RUN apk update --no-cache && apk add ca-certificates
|
|
||||||
COPY ${binary} /nfs-subdir-external-provisioner
|
COPY ${binary} /nfs-subdir-external-provisioner
|
||||||
ENTRYPOINT ["/nfs-subdir-external-provisioner"]
|
ENTRYPOINT ["/nfs-subdir-external-provisioner"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue