mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Dockerfile: use DEBIAN_FRONTEND=noninteractive as ARG ie just on build
This commit is contained in:
parent
31338f955b
commit
f823848697
@ -1,10 +1,11 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
WORKDIR /ardupilot
|
WORKDIR /ardupilot
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN useradd -U -m ardupilot && \
|
RUN useradd -U -m ardupilot && \
|
||||||
usermod -G users ardupilot
|
usermod -G users ardupilot
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install --no-install-recommends -y \
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
sudo \
|
sudo \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
@ -35,7 +36,7 @@ RUN echo "if [ -d \"\$HOME/.local/bin\" ] ; then\nPATH=\"\$HOME/.local/bin:\$PAT
|
|||||||
ENV BUILDLOGS=/tmp/buildlogs
|
ENV BUILDLOGS=/tmp/buildlogs
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
RUN DEBIAN_FRONTEND=noninteractive sudo apt-get clean \
|
RUN sudo apt-get clean \
|
||||||
&& sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
ENV CCACHE_MAXSIZE=1G
|
ENV CCACHE_MAXSIZE=1G
|
||||||
|
Loading…
Reference in New Issue
Block a user