xp-highscore/Dockerfile
dependabot-preview[bot] 40d2b28e31 Bump node from 15.2.1-alpine to 16.3.0-alpine
Bumps node from 15.2.1-alpine to 16.3.0-alpine.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-06-06 18:50:57 +02:00

27 lines
441 B
Docker

# Stage 1 testing
FROM node:16.3.0-alpine
COPY .jshintrc /data/
COPY package.json /data/
COPY package-lock.json /data/
COPY src /data/src
COPY public /data/public
RUN cd /data && npm i && npm test
# Stage 2 package
FROM node:16.3.0-alpine
COPY package.json /data/
COPY package-lock.json /data/
COPY src /data/src
COPY public /data/public
RUN cd /data && npm i --only=production
WORKDIR /data
EXPOSE 8080
CMD ["node", "src/index.js"]