mapcleaner/Dockerfile
dependabot[bot] bed1dff17a Bump node from 14.12.0-alpine to 14.13.1-alpine
Bumps node from 14.12.0-alpine to 14.13.1-alpine.

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-16 11:22:44 +02:00

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"]