Commit e8341368 by kmova

set Dockerfile to build from distroless

Signed-off-by: 's avatarkmova <kiran.mova@mayadata.io>
parent 15bc8b04
...@@ -12,11 +12,10 @@ ...@@ -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"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment