Skip to content

Commit 8750862

Browse files
committed
Try installing cargo via rustup
1 parent 27d3a28 commit 8750862

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.10-slim AS cirq_base
33
# Install dependencies.
44
# rm -rf /var/lib/apt/lists/* cleans up apt cache. See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
55
RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
6-
cargo \
6+
rustup \
77
python3-pip \
88
locales \
99
&& rm -rf /var/lib/apt/lists/*
@@ -15,6 +15,9 @@ ENV LANG en_US.UTF-8
1515
ENV LANGUAGE en_US:en
1616
ENV LC_ALL en_US.UTF-8
1717

18+
# Use the last stable rust
19+
RUN rustup update
20+
1821
# Make python3 default
1922
RUN rm -f /usr/bin/python \
2023
&& ln -s /usr/bin/python3 /usr/bin/python

0 commit comments

Comments
 (0)