# The name of these ConfigMaps is currently hardcoded in Knative build
# templates by the Function controller, and must therefore not be modified.
# They are not created by Kustomize to prevent the object's name from being
# automatically prefixed (e.g. "function-dockerfile-...").
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: dockerfile-nodejs-12
  labels:
    function: serverless-function-controller
data:
  Dockerfile: |-
    FROM eu.gcr.io/kyma-project/function-runtime-nodejs12:a62f4a7f
    USER root
    RUN export KUBELESS_INSTALL_VOLUME='/kubeless' && \
        mkdir /kubeless && \
        cp /src/handler.js /kubeless && \
        cp /src/package.json /kubeless && \
        /kubeless-npm-install.sh
    USER 1000
