Created
December 23, 2024 02:26
-
-
Save azlkiniue/9a50e3f9417c6806e80ce42a566af485 to your computer and use it in GitHub Desktop.
Dockerfile for building AGL
This file contains hidden or 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
FROM ubuntu:22.04 AS build | |
SHELL ["/bin/bash", "-c"] | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
curl \ | |
git \ | |
python3 \ | |
python3-pip \ | |
&& curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo \ | |
&& chmod a+x /usr/bin/repo \ | |
&& groupadd -g 1000 pokyuser \ | |
&& useradd -m -u 1000 -g 1000 pokyuser | |
USER pokyuser | |
WORKDIR /home/pokyuser | |
RUN mkdir /home/pokyuser/AGL \ | |
&& cd /home/pokyuser/AGL \ | |
&& repo init -b ricefish -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo \ | |
&& repo sync -j8 | |
FROM crops/poky:ubuntu-22.04 | |
COPY --chown=1000:1000 --from=build /home/pokyuser/AGL /home/pokyuser/AGL | |
ENTRYPOINT ["/usr/bin/distro-entry.sh", "/usr/bin/dumb-init", "--", "/usr/bin/poky-entry.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment