1
0
mirror of https://github.com/containers/youki synced 2024-11-26 06:08:07 +01:00
youki/.devcontainer/Dockerfile
Keisuke Umegaki 68a5e8423d
follow building best practices (#2856)
Signed-off-by: keisku <keisuke.umegaki.630@gmail.com>
2024-07-21 12:31:50 +00:00

39 lines
798 B
Docker

ARG VARIANT="bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
# Install docker with youki
COPY <<EOF /etc/docker/daemon.json
{
"runtimes": {
"youki": {
"path": "/workspaces/youki/youki"
}
}
}
EOF
RUN <<EOF
apt-get update
apt-get install -y \
# For building
build-essential \
git \
libclang-dev \
libelf-dev \
libseccomp-dev \
libssl-dev \
libsystemd-dev \
pkg-config \
# For debugging
bpftrace \
podman
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin
# nightly build is required for `cargo fmt` as `rustfmt.toml` uses unstable features.
curl https://sh.rustup.rs -sSf | sh -s -- -y
rustup install nightly
rustup component add rustfmt
rustup component add clippy
EOF