Skip to content
Snippets Groups Projects
Commit f9387bc4 authored by Steve Reis's avatar Steve Reis
Browse files

Added run tests in the dockerfile

parent c84ec34b
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,14 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --only=development
RUN npm ci --development
COPY . .
RUN npm run build
RUN npm run test
FROM node:12.13-alpine as production
ARG NODE_ENV=production
......@@ -19,7 +21,7 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --only=production
RUN npm ci --production
COPY . .
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment