Files
2026-09-22 09:38:26 +08:00

27 lines
796 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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!"]