2018-12-24 14:01:05 +01:00
|
|
|
FROM node:10-alpine
|
|
|
|
|
|
|
|
# Reduce npm install verbosity, overflows Travis CI log view
|
|
|
|
ENV NPM_CONFIG_LOGLEVEL warn
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
RUN mkdir -p /var/infoscreens
|
|
|
|
WORKDIR /var/infoscreens
|
|
|
|
COPY package.json /var/infoscreens
|
|
|
|
COPY server /var/infoscreens/server
|
|
|
|
COPY dist /var/infoscreens/dist
|
|
|
|
|
|
|
|
# Install NoFlo and dependencies
|
|
|
|
RUN npm install --only=production
|
|
|
|
|
|
|
|
# Map the volumes
|
|
|
|
VOLUME /var/infoscreens/dist
|
2018-12-26 12:58:20 +01:00
|
|
|
VOLUME /var/infoscreens/videos
|
2018-12-26 18:41:28 +01:00
|
|
|
VOLUME /var/infoscreens/pictures
|
2018-12-24 14:01:05 +01:00
|
|
|
|
|
|
|
CMD npm start
|