forked from mavlink/MAVSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-Ubuntu-20.04
58 lines (47 loc) · 1.42 KB
/
Dockerfile-Ubuntu-20.04
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Development environment for MAVSDK based on Ubuntu 20.04.
#
# Author: Julian Oes <[email protected]>
#
FROM ubuntu:20.04
MAINTAINER Julian Oes <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get -y --quiet --no-install-recommends install \
autoconf \
automake \
autotools-dev \
build-essential \
ca-certificates \
ccache \
clang-format-10 \
cmake \
colordiff \
doxygen \
git \
golang-go \
libcurl4-openssl-dev \
libltdl-dev \
libtinyxml2-dev \
libtool \
libz-dev \
ninja-build \
python3 \
python3-pip \
ruby-dev \
software-properties-common \
sudo \
wget \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
RUN gem install --no-document fpm;
RUN wget -qO- https://github.com/ncopa/su-exec/archive/dddd1567b7c76365e1e0aac561287975020a8fad.tar.gz | tar xvz && \
cd su-exec-* && make && mv su-exec /usr/local/bin && cd .. && rm -rf su-exec-*
# Create user with id 1001 (Jenkins docker workflow default)
RUN useradd --shell /bin/bash -u 1001 -c "" -m user
ADD /sudoers.txt /etc/sudoers
RUN chmod 440 /etc/sudoers
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
WORKDIR "/home/user/MAVSDK"