mirror of
https://github.com/AsteroidOS/asteroid.git
synced 2026-01-28 09:00:04 -05:00
This commit merges 'apt' commands and cleanup into one Docker layer. This is crucial because cleanup within the same layer it's created is effective, unlike in separate layers. This change improves Docker image efficiency by reducing the overall size.
11 lines
520 B
Docker
11 lines
520 B
Docker
FROM ubuntu:bionic
|
|
|
|
# Install packages required to build AsteroidOS
|
|
# And add the en_US.utf8 locale because it is required and not installed by default in minimal Ubuntu images
|
|
RUN apt update && apt upgrade -y && apt install -y git build-essential cpio diffstat gawk chrpath texinfo python python3 python3-distutils wget shared-mime-info zstd liblz4-tool locales \
|
|
&& rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
|
|
|
ENV LANG en_US.utf8
|
|
|
|
WORKDIR /asteroid
|