beerchat_proxy/Dockerfile
dependabot-preview[bot] 7f452a35b7 Bump node from 14.2.0-alpine to 14.3.0-alpine
Bumps node from 14.2.0-alpine to 14.3.0-alpine.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 11:27:37 +02:00

26 lines
384 B
Docker

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