From f20458fc2eebf3cfb411b5b16b6536479b4f22b4 Mon Sep 17 00:00:00 2001 From: Philipp Arndt <2f.mail@gmx.de> Date: Thu, 20 Jan 2022 15:40:35 +0100 Subject: [PATCH] update build process --- .dockerignore | 14 ++++++++++++++ Dockerfile | 2 +- app/.dockerignore | 14 -------------- 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 .dockerignore delete mode 100644 app/.dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..4ae6f11d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,14 @@ +**/coverage/ +*.iml +.idea/ +.github/ +.run/ + +# Node/NPM +**/node_modules/ +**/dist/ +**/junit.xml +**/build_internal/ + +# Test Cases +**/*.test.ts diff --git a/Dockerfile b/Dockerfile index b40c62d8..457561e1 100755 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM node:17.3.1-alpine3.14 WORKDIR /opt/app # Copy project files -COPY . . +COPY ./app . # Run container as non-root (unprivileged) user # The node user is provided in the Node.js Alpine base image diff --git a/app/.dockerignore b/app/.dockerignore deleted file mode 100644 index e32687b9..00000000 --- a/app/.dockerignore +++ /dev/null @@ -1,14 +0,0 @@ -coverage/ -*.iml -.idea/ -.github/ -.run/ - -# Node/NPM -node_modules/ -dist/ -junit.xml -build_internal/ - -# Test Cases -**/*.test.ts