diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b579ba9e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:10.15.1 +WORKDIR cloud_functions/function +COPY package*.json ./ +RUN npm install +COPY . . \ No newline at end of file diff --git a/cloudbuildfunctions.yaml b/cloudbuildfunctions.yaml index 2598e222..d3a6e56b 100644 --- a/cloudbuildfunctions.yaml +++ b/cloudbuildfunctions.yaml @@ -1,9 +1,9 @@ steps: - # - name: "gcr.io/kaniko-project/executor:latest" - # args: - # - --destination=gcr.io/$PROJECT_ID/image - # - --cache=true - # - --cache-ttl=24h + - name: "gcr.io/kaniko-project/executor:latest" + args: + - --destination=gcr.io/$PROJECT_ID/image + - --cache=true + - --cache-ttl=24h - name: gcr.io/cloud-builders/gcloud args: - kms @@ -13,10 +13,10 @@ steps: - --location=global - --keyring=antler-vc - --key=cloudbuild-env - - name: node:10.15.1 - entrypoint: yarn - args: ["install"] - dir: "cloud_functions/functions" + # - name: node:10.15.1 + # entrypoint: yarn + # args: ["install"] + # dir: "cloud_functions/functions" - name: node:10.15.1 entrypoint: yarn args: