You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
511 B
23 lines
511 B
5 years ago
|
# Mosca
|
||
|
#
|
||
|
# VERSION 2.5.2
|
||
|
|
||
|
FROM hypriot/rpi-node:6
|
||
|
MAINTAINER Matteo Collina <hello@matteocollina.com>
|
||
|
|
||
|
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 libzmq3-dev libkrb5-dev && \
|
||
|
npm install --unsafe-perm --production && \
|
||
|
apt-get remove make gcc g++ python git && \
|
||
|
apt-get autoremove
|
||
|
|
||
|
EXPOSE 80
|
||
|
EXPOSE 1883
|
||
|
|
||
|
ENTRYPOINT ["/usr/src/app/bin/mosca", "-d", "/db", "--http-port", "80", "--http-bundle", "-v"]
|