upsilon/build/Dockerfile.opensbi

26 lines
804 B
Docker
Raw Normal View History

2023-06-15 12:24:35 -04:00
# Copyright 2023 (C) Peter McGoron
2023-06-14 15:13:16 -04:00
#
2023-06-15 12:24:35 -04:00
# This file is a part of Upsilon, a free and open source software project.
# For license terms, refer to the files in `doc/copying` in the Upsilon
# source distribution.
2023-06-14 15:13:16 -04:00
FROM debian:bookworm
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y make device-tree-compiler python3 \
adduser gcc-riscv64-linux-gnu \
&& adduser --quiet --disabled-password user
#RUN apt-get update \
# && apt-get -y upgrade \
# && apt-get install -y git wget python3 xz-utils bash verilator \
# m4 device-tree-compiler make gcc-riscv64-unknown-elf \
# && adduser --quiet --disabled-password user
USER user:user
WORKDIR /home/user
COPY --chown=user:user opensbi.tar.gz /home/user
RUN tar -xvf opensbi.tar.gz \
&& rm ~/opensbi.tar.gz