Skip to content

Commit dfebc76

Browse files
committed
docker: Clean up
1 parent 3b759fd commit dfebc76

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

util/container/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
ARG VERILATOR_VERSION=5.034
88
ARG UBUNTU_VERSION=22.04
9-
ARG PYTHON_VERSION=3.11
109
# Run dpkg without interactive dialogue
1110
ARG DEBIAN_FRONTEND=noninteractive
1211

@@ -45,7 +44,7 @@ RUN wget https://github.com/pulp-platform/llvm-project/releases/download/${SNITC
4544
tar xvf riscv32-snitch-llvm-ubuntu2204-${SNITCH_LLVM_VERSION}.tar.gz && \
4645
mv riscv32-snitch-llvm-ubuntu2204-${SNITCH_LLVM_VERSION} riscv-llvm
4746

48-
# Install uv and python
47+
# Install uv
4948
ENV UV_INSTALL_DIR=/tools
5049
ADD https://astral.sh/uv/install.sh /uv-installer.sh
5150
RUN sh /uv-installer.sh && rm /uv-installer.sh
@@ -57,7 +56,6 @@ RUN sh /uv-installer.sh && rm /uv-installer.sh
5756
#------------------------------------------------------------------------------
5857

5958
FROM verilator/verilator:v${VERILATOR_VERSION} AS snitch_cluster-hw
60-
ARG PYTHON_VERSION
6159
ARG DEBIAN_FRONTEND
6260

6361
LABEL version="0.1"
@@ -76,7 +74,6 @@ RUN apt-get update && \
7674

7775
# Copy all needed files to install the package
7876
COPY . /repo
79-
WORKDIR /repo
8077

8178
# Copy the tools from the builder stage
8279
COPY --from=tool-builder /tools/bender /tools/bin/
@@ -91,9 +88,8 @@ ENV PATH="/tools/bin:${PATH}"
9188
ENV PATH="/tools/riscv-llvm/bin:${PATH}"
9289
ENV PATH="/repo/target/sim/build/bin:${PATH}"
9390

94-
# Install python and venv
91+
# Define uv environment
9592
ENV UV_LINK_MODE=copy
96-
RUN uv sync --locked --extra all
9793
ENV SN_UV="uv run --all-extras"
9894

9995
#-------------------------------------------------------------------------------
@@ -126,7 +122,6 @@ RUN apt-get update && \
126122

127123
# Copy all needed files to install the package
128124
COPY . /repo
129-
WORKDIR /repo
130125

131126
# Copy the tools from the builder stages
132127
COPY --from=tool-builder /tools/bender /tools/bin/
@@ -140,7 +135,6 @@ ENV SN_LLVM_BINROOT="/tools/riscv-llvm/bin"
140135
ENV PATH="/tools/bin:${PATH}"
141136
ENV PATH="/tools/riscv-llvm/bin:${PATH}"
142137

143-
# Install python and venv
138+
# Define uv environment
144139
ENV UV_LINK_MODE=copy
145-
RUN uv sync --locked --extra all
146140
ENV SN_UV="uv run --all-extras"

0 commit comments

Comments
 (0)