From 7c1de446eb4ff06679a9473ae8963be40d4dc3a8 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Fri, 2 Jun 2023 12:53:50 +0530 Subject: [PATCH] Added cloud run --- .gcloudignore | 17 +++++++++++++++++ Dockerfile | 2 +- app.yaml | 1 + docker_entrypoint.sh | 2 ++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .gcloudignore create mode 100644 app.yaml create mode 100644 docker_entrypoint.sh diff --git a/.gcloudignore b/.gcloudignore new file mode 100644 index 0000000..4d7d693 --- /dev/null +++ b/.gcloudignore @@ -0,0 +1,17 @@ +# This file specifies files that are *not* uploaded to Google Cloud +# using gcloud. It follows the same syntax as .gitignore, with the addition of +# "#!include" directives (which insert the entries of the given .gitignore-style +# file at that point). +# +# For more information, run: +# $ gcloud topic gcloudignore +# +.gcloudignore +# If you would like to upload your .git directory, .gitignore file or files +# from your .gitignore file, remove the corresponding line +# below: +.git +.gitignore + +# Node.js dependencies: +node_modules/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 12013a5..950d846 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ ENV PORT=3000 EXPOSE $PORT # Start the application -ENTRYPOINT ["npm", "start"] +#ENTRYPOINT ["npm", "start"] diff --git a/app.yaml b/app.yaml new file mode 100644 index 0000000..c5cb29f --- /dev/null +++ b/app.yaml @@ -0,0 +1 @@ +runtime: nodejs16 \ No newline at end of file diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh new file mode 100644 index 0000000..83db717 --- /dev/null +++ b/docker_entrypoint.sh @@ -0,0 +1,2 @@ +cp $ACCESS_TOKEN_PATH +npm start \ No newline at end of file