1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-11 19:29:16 +08:00
Aleksandar Novaković 08105205e1 NOISSUE - Update aedes version and fix Dockerfile (#863)
* Update MQTT adapter and add message TTL

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Fix clean command

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-09-17 20:25:38 +02:00

18 lines
505 B
Docker

# Copyright (c) Mainflux
# SPDX-License-Identifier: Apache-2.0
FROM node:10.15.1-alpine as builder
## Install build toolchain, install node deps and compile native add-ons
RUN apk add --no-cache python make g++
COPY mqtt/aedes/package.json .
RUN npm rebuild && npm install --only=production
FROM node:10.15.1-alpine
## Copy built node modules and binaries without including the toolchain
COPY --from=builder node_modules/ ./node_modules
COPY *.proto mqtt/* ./
EXPOSE 1883 8880
CMD ["node", "mqtt.js"]