-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·43 lines (37 loc) · 900 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:latest
ENV MAKE_JOBS=8
ENV OBUSPA_ARGS="-v4"
# Add mosquitto latest ppa
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
# Install dependencies
RUN apt-get update &&\
apt-get -y install \
libssl-dev \
libcurl4-openssl-dev\
libsqlite3-dev \
libc-ares-dev \
libz-dev \
autoconf \
automake \
libtool \
libmosquitto-dev \
libwebsockets-dev \
pkg-config \
make \
&&\
apt-get clean
# Copy in all of the code
# Then compile, as root.
COPY . /obuspa/
RUN cd /obuspa/ && \
autoreconf -fi && \
./configure && \
make -j${MAKE_JOBS} && \
make install
# Then delete the code
# that's no longer needed
RUN rm -rf /obuspa
# Run obuspa with args expanded
CMD obuspa ${OBUSPA_ARGS}