Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #583 from ma314smith/master
Browse files Browse the repository at this point in the history
enable docker hub builds for Raspberry Pi
  • Loading branch information
mcollina committed Dec 30, 2016
2 parents 43ff455 + 6410df3 commit 9e451ae
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile-rpi-hub
@@ -0,0 +1,25 @@
# Mosca
#
# VERSION 0.2.1

FROM ma314smith/rpi2-node-qemu:4
MAINTAINER Matteo Collina <hello@matteocollina.com>

RUN [ "cross-build-start" ]

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app/

COPY ./ /usr/src/app/

RUN apt-get update && \
apt-get install make gcc g++ python git && \
npm install --unsafe-perm --production && \
apt-get remove make gcc g++ python git

EXPOSE 80
EXPOSE 1883

ENTRYPOINT ["/usr/src/app/bin/mosca", "-d", "/db", "--http-port", "80", "--http-bundle", "-v"]

RUN [ "cross-build-end" ]

0 comments on commit 9e451ae

Please sign in to comment.