beerchat_proxy/Dockerfile

26 lines
384 B
Docker
Raw Normal View History

# Stage 1 testing
FROM node:14.5.0-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:14.5.0-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
2020-03-20 10:01:28 +01:00
CMD ["npm", "start"]