spiff-arena/Dockerfile
Jon Herron 2382c3f0ab Squashed 'spiffworkflow-frontend/' content from commit 75dbea67
git-subtree-dir: spiffworkflow-frontend
git-subtree-split: 75dbea67346d1b0c161b1d7582eeb5442aec5762
2022-10-12 10:21:49 -04:00

16 lines
516 B
Docker

### STAGE 1: Build ###
FROM quay.io/sartography/node:latest
RUN mkdir /app
WORKDIR /app
ADD package.json /app/
ADD package-lock.json /app/
COPY . /app/
# npm ci because it respects the lock file.
# --ignore-scripts because authors can do bad things in postinstall scripts.
# https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet.html
# npx can-i-ignore-scripts can check that it's safe to ignore scripts.
RUN npm ci --ignore-scripts && npm run build
ENTRYPOINT ["/app/bin/boot_server_in_docker"]