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.

21 lines
461 B

# Mosca
#
# VERSION 2.5.2
FROM mhart/alpine-node:4
MAINTAINER Matteo Collina <hello@matteocollina.com>
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app/
COPY ./ /usr/src/app/
RUN apk update && \
apk add make gcc g++ python git zeromq-dev krb5-dev && \
npm install --unsafe-perm --production && \
apk del make gcc g++ python git
EXPOSE 80
EXPOSE 1883
ENTRYPOINT ["/usr/src/app/bin/mosca", "-d", "/db", "--http-port", "80", "--http-bundle", "-v"]