user/ci/Dockerfile

24 lines
403 B
Docker
Raw Normal View History

2023-01-09 14:08:45 +00:00
###################
# BUILD FOR LOCAL DEVELOPMENT
###################
FROM node:18-alpine3.16
# Create app directory
WORKDIR /usr/src/app
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
# Install app dependencies
RUN npm ci
# Bundle app source
COPY . .
# Creates a "dist" folder
RUN npm run build
2023-01-09 15:31:15 +00:00
# Execute test suite
2023-01-09 15:59:19 +00:00
RUN npm run test:unit