1# Copyright (c) 2020 Arm Limited 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15FROM ubuntu:jammy 16 17# Get dependencies for retrieving and building TF-M with MCUBoot, and QEMU. 18RUN apt-get update && \ 19 DEBIAN_FRONTEND="noninteractive" \ 20 apt-get install -y \ 21 cmake \ 22 curl \ 23 gcc-arm-none-eabi \ 24 gdb-multiarch \ 25 git \ 26 libncurses5 \ 27 python3 \ 28 python3-pip \ 29 qemu-system-arm \ 30 file &&\ 31 apt-get clean all 32 33# Installing python packages 34RUN python3 -m pip install \ 35 imgtool>=1.9.0 \ 36 Jinja2>=2.10.3 \ 37 PyYAML \ 38 pyasn1 39 40# Add tfm work directory && get rid of spurious git ownership errors 41RUN mkdir -p /root/work/tfm &&\ 42 git config --global --add safe.directory '*' 43 44# run the command 45CMD ["bash"] 46