Removed apt-get upgrade and edited for image size
This commit is contained in:
@@ -9,15 +9,13 @@ MAINTAINER https://groups.google.com/forum/#!forum/chipyard
|
|||||||
|
|
||||||
# Install dependencies for ubuntu-req.sh
|
# Install dependencies for ubuntu-req.sh
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get upgrade -y && \
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
apt-get install -y \
|
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
sudo
|
sudo \
|
||||||
|
ca-certificates \
|
||||||
# Stopping docker keyboard-config from disrupting ubuntu-req.sh
|
keyboard-configuration \
|
||||||
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get install -y keyboard-configuration && \
|
console-setup
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y console-setup
|
|
||||||
|
|
||||||
# Adds a new user called riscvuser
|
# Adds a new user called riscvuser
|
||||||
RUN groupadd --gid 3434 riscvuser \
|
RUN groupadd --gid 3434 riscvuser \
|
||||||
@@ -37,7 +35,8 @@ ENV PATH="$RISCV/bin:$PATH"
|
|||||||
RUN git clone https://github.com/ucb-bar/chipyard.git && \
|
RUN git clone https://github.com/ucb-bar/chipyard.git && \
|
||||||
cd chipyard && \
|
cd chipyard && \
|
||||||
git checkout $CHIPYARD_HASH && \
|
git checkout $CHIPYARD_HASH && \
|
||||||
./scripts/ubuntu-req.sh 1>/dev/null
|
./scripts/ubuntu-req.sh 1>/dev/null && \
|
||||||
|
sudo rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# BUILD IMAGE WITH TOOLCHAINS
|
# BUILD IMAGE WITH TOOLCHAINS
|
||||||
|
|||||||
Reference in New Issue
Block a user