From 572726e8c8218b81c6bfacee677c7f16d54685bc Mon Sep 17 00:00:00 2001 From: Mathew Payne <2772944+GeekMasher@users.noreply.github.com> Date: Thu, 3 Feb 2022 18:38:13 +0000 Subject: [PATCH] Add Client Dockerfile --- .github/workflows/anchore-analysis.yml | 2 +- client.Dockerfile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 client.Dockerfile diff --git a/.github/workflows/anchore-analysis.yml b/.github/workflows/anchore-analysis.yml index fda2524..636f236 100644 --- a/.github/workflows/anchore-analysis.yml +++ b/.github/workflows/anchore-analysis.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - images: [ 'server.Dockerfile' ] + images: [ 'server.Dockerfile', 'client.Dockerfile' ] steps: - name: Checkout the code diff --git a/client.Dockerfile b/client.Dockerfile new file mode 100644 index 0000000..ef2eaab --- /dev/null +++ b/client.Dockerfile @@ -0,0 +1,7 @@ +FROM node:6.14.2-slim + +WORKDIR /app + +COPY client . +RUN npm install && \ + npm install express express-jwt@5.3.3