Skip to content

Commit

Permalink
Dockerfile: use DEBIAN_FRONTEND=noninteractive as ARG ie just on build
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and peterbarker committed Sep 5, 2020
1 parent 31338f9 commit f823848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM ubuntu:18.04
WORKDIR /ardupilot

ARG DEBIAN_FRONTEND=noninteractive
RUN useradd -U -m 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 \
sudo \
software-properties-common
Expand Down Expand Up @@ -35,7 +36,7 @@ RUN echo "if [ -d \"\$HOME/.local/bin\" ] ; then\nPATH=\"\$HOME/.local/bin:\$PAT
ENV BUILDLOGS=/tmp/buildlogs

# Cleanup
RUN DEBIAN_FRONTEND=noninteractive sudo apt-get clean \
RUN sudo apt-get clean \
&& sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV CCACHE_MAXSIZE=1G

0 comments on commit f823848

Please sign in to comment.