mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-12 19:29:30 +08:00

* Add basic websocket support Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add separate cards for base and regular attribs Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add arbitrary json metadata enc/dec Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add JsonMF module for JSON val handling Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Rename json related func for naming consistency Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Remove Thing type from user interface Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add arbitrary metadata json to channels Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Change json string identation Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
23 lines
777 B
Docker
23 lines
777 B
Docker
###
|
|
# Copyright (c) 2015-2019 Mainflux
|
|
#
|
|
# Mainflux is licensed under an Apache license, version 2.0 license.
|
|
# All rights not explicitly granted in the Apache license, version 2.0 are reserved.
|
|
# See the included LICENSE file for more details.
|
|
###
|
|
|
|
# Stage 0, based on Node.js, to build and compile Elm app
|
|
FROM node:10.15.1-alpine as builder
|
|
|
|
WORKDIR /app
|
|
RUN npm install --unsafe-perm=true --allow-root -g elm
|
|
|
|
COPY . /app
|
|
RUN elm make --optimize src/Main.elm --output=main.js
|
|
|
|
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
|
|
FROM nginx:1.14.2-alpine
|
|
COPY --from=builder /app/index.html /usr/share/nginx/html
|
|
COPY --from=builder /app/css/mainflux.css /usr/share/nginx/html/css/
|
|
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|