build: run tests in docker container during build

Reduces the risk of an updated Docker image breaking things unnoticed
This commit is contained in:
Jonas Gloning 2023-01-17 15:20:24 +01:00
parent b4bdd61cf6
commit 1363adf592
No known key found for this signature in database
GPG Key ID: 684639B5E59E7614

View File

@ -5,6 +5,7 @@ COPY package.json package-lock.json ./
RUN npm clean-install
COPY . ./
RUN npm run build
RUN npm run test
FROM node:18.13.0-alpine as production
RUN mkdir /peer-server