You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
720 B
22 lines
720 B
FROM ubuntu:16.04 |
|
WORKDIR /ardupilot |
|
|
|
RUN useradd -U -d /ardupilot ardupilot && \ |
|
usermod -G users ardupilot |
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install --no-install-recommends -y \ |
|
lsb-release \ |
|
sudo \ |
|
software-properties-common \ |
|
python-software-properties && \ |
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
|
|
|
ENV USER=ardupilot |
|
ADD . /ardupilot |
|
RUN chown -R ardupilot:ardupilot /ardupilot && \ |
|
bash -c "Tools/scripts/install-prereqs-ubuntu.sh -y && apt-get install gcc-arm-none-eabi -y" && \ |
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
|
|
|
USER ardupilot |
|
ENV CCACHE_MAXSIZE=1G |
|
ENV PATH /usr/lib/ccache:/ardupilot/Tools:${PATH}
|
|
|