xp-highscore/Dockerfile
2020-03-16 12:49:38 +01:00

24 lines
361 B
Docker
Executable File

# Stage 1 testing
FROM node:13.10.1-alpine
COPY package.json /data/
COPY src /data/src
COPY public /data/public
RUN cd /data && npm i && npm test
# Stage 2 package
FROM node:13.10.1-alpine
COPY package.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"]