-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (30 loc) · 887 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
FROM debian:stretch
LABEL maintainer="JES <je@aesyc.systems>" \
version="1.0"
ENV DEBIAN_FRONTEND noninteractive
ENV LD_LIBRARY_PATH /usr/local/lib:/tmp/usr/local/lib
RUN apt-get clean && apt-get update
# Basic tools
RUN apt-get install -y \
gcc g++ \
libc-dev \
make \
curl wget git
# Dependencies of wjwwood's serial library
RUN apt-get install -y \
cmake \
python python-pip \
catkin
RUN mkdir /repos
WORKDIR /repos
# Install wjwwood's serial library
RUN git clone https://github.com/wjwwood/serial.git
WORKDIR /repos/serial
RUN make -j $(nproc)
RUN make install
# Install and build the serial gateway
RUN mkdir /repos/SerialPortGateway
COPY ./ /repos/SerialPortGateway/
WORKDIR /repos/SerialPortGateway/
RUN chmod +x build.sh
RUN ["/bin/bash", "-c", "./build.sh"]