From 6c96c05175692a40f92e467cf85ef19b5cfefc11 Mon Sep 17 00:00:00 2001 From: David C Goldenberg Date: Thu, 26 Sep 2024 09:00:41 -0400 Subject: [PATCH] Updated Dockerfile to be consistent with GCHQ version. --- .gitignore | 1 - Dockerfile | 12 +++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e8a5c5fc4..60d19e1fa 100755 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,4 @@ src/node/index.mjs **/*.DS_Store tests/browser/output/* .node-version -Dockerfile build.sh diff --git a/Dockerfile b/Dockerfile index 64339fa8f..e74f465a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,9 @@ -FROM nginx:latest -LABEL maintainer='David Goldenberg' -COPY ../build/prod /usr/share/nginx/html \ No newline at end of file +FROM node:18-alpine AS build + +COPY . . +RUN npm ci +RUN npm run build + +FROM nginx:1.25-alpine3.18 AS cyberchef + +COPY --from=build ./build/prod /usr/share/nginx/html/ \ No newline at end of file