forked from mnordseth/enet2mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# syntax=docker/dockerfile:1
FROM ubuntu:latest
ENV enet_user=
ENV enet_pass=
ENV mqtt_user=
ENV mqtt_pass=
ENV enet_ip=
ENV mqtt_ip=
ENV mqtt_port=
ENV uri_scheme=
ENV verify_ssl_cert=
RUN apt-get update && apt-get install --no-install-recommends -y gcc build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev libbz2-dev && apt-get install wget -y
RUN rm -rf /var/lib/apt/lists/*
RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz && tar -xf Python-3.7.4.tgz && cd Python-3.7.4 && ./configure --enable-optimizations && make install && pip3 install ipython requests paho-mqtt && cd ../ && rm -r Python-3.7.4 Python-3.7.4.tgz && apt-get remove wget build-essential -y
COPY . .
RUN chmod +x start.sh
CMD [ "./start.sh" ]