beerchat_proxy/Dockerfile

26 lines
394 B
Docker
Raw Normal View History

# Stage 1 testing
FROM node:13.10.1-alpine
2019-08-08 11:03:28 +02:00
COPY package.json /data/
2019-12-02 08:50:34 +01:00
COPY package-lock.json /data/
2019-12-02 09:01:13 +01:00
COPY .jshintrc /data/
2019-08-08 11:03:28 +02:00
COPY src /data/src
2019-12-02 08:56:42 +01:00
RUN cd /data && npm i && npm test
2019-08-08 11:03:28 +02:00
# Stage 2 package
FROM node:13.10.1-alpine
COPY package.json /data/
COPY package-lock.json /data/
COPY src /data/src
RUN cd /data && npm i --only=production
2019-08-08 11:03:28 +02:00
WORKDIR /data
EXPOSE 8080
CMD ["node", "src/index.js"]