Combine RUN statements into one and remove shell expansion

This commit is contained in:
James Rowe 2020-04-30 22:39:10 -06:00
parent affcece6a6
commit 48dc64253f
4 changed files with 31 additions and 33 deletions

View file

@ -1,8 +1,6 @@
FROM ubuntu:20.04
MAINTAINER yuzu
RUN useradd -m -s /bin/bash yuzu
RUN apt-get update && apt-get -y full-upgrade
RUN apt-get install -y git clang-format-6.0
# cleanup all extra information that apt may be caching to save storage space
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN useradd -m -s /bin/bash yuzu && \
apt-get update && apt-get -y full-upgrade && \
apt-get install -y git clang-format-6.0 && \
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log