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