Set up ARM build
This commit is contained in:
parent
2a568ed2f0
commit
d425aec2e4
3 changed files with 51 additions and 3 deletions
23
Dockerfile-raspberrypi3
Normal file
23
Dockerfile-raspberrypi3
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
FROM resin/raspberrypi3-node:8
|
||||
|
||||
# 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
|
||||
VOLUME /var/infoscreens/videos
|
||||
VOLUME /var/infoscreens/pictures
|
||||
|
||||
CMD npm start
|
||||
Loading…
Add table
Add a link
Reference in a new issue