Update Dockerfile to run the server
This commit is contained in:
parent
d2707da076
commit
2395af36d9
2 changed files with 23 additions and 3 deletions
23
Dockerfile
23
Dockerfile
|
|
@ -1,2 +1,21 @@
|
|||
FROM nginx
|
||||
COPY dist /usr/share/nginx/html
|
||||
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
|
||||
|
||||
CMD npm start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue