Files
BPI-M2C/source_sync_rls_25c/prebuilts/scripts/buildtools/create-yocto-docker/Dockerfile
T

27 lines
796 B
Docker
Raw Normal View History

2026-09-22 09:38:26 +08:00
# Dockerfile for Ubuntu Docker image to build yocto (dunfell)
# 使用基础镜像
FROM ubuntu:20.04
# 创建user用户,然后默认进入user用户docker,yocto不允许root用户启动编译。
RUN useradd -ms /bin/bash dockeruser
# 默认先不使用user,否则不能集成对应的包。
# USER dockeruser
WORKDIR /app
# copy install package scripts
COPY . /app
# install package(in docker)
#RUN apt-get update && \
# apt-get install -y git gawk wget git-core diffstat unzip texinfo gcc-multilib \
# build-essential chrpath socat cpio python3 python3-pip python3-pexpect \
# xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
# pylint3 xterm
# RUN apt-get update
# 后续提供检查脚本
CMD ["echo", "Hello, Docker!"]