bed1dff17a
Bumps node from 14.12.0-alpine to 14.13.1-alpine. Signed-off-by: dependabot[bot] <support@github.com>
24 lines
289 B
Docker
24 lines
289 B
Docker
# Stage 1 testing
|
|
FROM node:14.13.1-alpine as builder
|
|
|
|
COPY . /data
|
|
|
|
# build
|
|
RUN cd /data &&\
|
|
npm ci &&\
|
|
npm test &&\
|
|
npm run jshint
|
|
|
|
# Stage 2 package
|
|
FROM node:14.13.1-alpine
|
|
|
|
COPY . /data
|
|
|
|
RUN cd /data && npm ci --only=production
|
|
|
|
WORKDIR /data
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["npm", "start"]
|