-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use Ubuntu version 20.04 as base image
FROM ubuntu:20.04
# Node-RED project as working directory
WORKDIR /k-anonymity-env
COPY . /k-anonymity-env
# Install basic packages for Ubuntu
RUN apt update
RUN apt install -y software-properties-common
RUN apt install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
RUN apt install -y nodejs
RUN npm install -g --unsafe-perm node-red
RUN npm install node-red-dashboard
# Install Mosquito
RUN apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
RUN apt update
RUN apt install -y mosquitto
# Install Python and CASTLE dependencies
RUN apt install -y python3-pip
RUN pip3 install pandas
RUN pip3 install numpy
RUN pip3 install zmq
RUN pip3 install matplotlib
EXPOSE 1883
EXPOSE 1880
# Run the application
ENTRYPOINT ["sh", "setup.sh"]