36 lines
1.2 KiB
Docker
36 lines
1.2 KiB
Docker
# Copyright 2023 Peter McGoron
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
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
|