forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: add Dockerfile for Docker container support
- Loading branch information
1 parent
a962119
commit 2fe3535
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters