Skip to content

Commit 7444a84

Browse files
committed
Add a Docker image that's close enough to the CI environment
This is close enough to the runner environment that GitHub provides to reproduce tricky pipeline issues.
1 parent 2db2769 commit 7444a84

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Diff for: .dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

Diff for: Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM ubuntu:jammy
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
build-essential \
5+
ca-certificates \
6+
cmake \
7+
curl \
8+
git \
9+
ninja-build \
10+
openssh-client \
11+
&& apt-get clean
12+
13+
ENV RUSTUP_HOME=/usr/local/rustup \
14+
CARGO_HOME=/usr/local/cargo \
15+
PATH=/usr/local/cargo/bin:$PATH
16+
17+
RUN curl https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init --output /tmp/rustup-init \
18+
&& chmod +x ./tmp/rustup-init \
19+
&& /tmp/rustup-init -y \
20+
--default-toolchain=stable \
21+
--profile=default \
22+
&& rm /tmp/rustup-init \
23+
&& chmod -R a+w $RUSTUP_HOME $CARGO_HOME \

0 commit comments

Comments
 (0)