Files
onefuzz/.devcontainer/Dockerfile
George Pollard 7809b40e74 Update to Rust 1.64 (#2488)
[Release notes.](https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html)

Probably one of the more important things is:
> performance improvements of 10-20% for compiling Rust code on Windows
2022-10-04 22:31:53 +00:00

30 lines
1017 B
Docker

# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.224.3/containers/ubuntu/.devcontainer/base.Dockerfile
ARG VARIANT="ubuntu-22.04"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
# note: keep this in sync with .github/workflows/ci.yml
ARG RUSTVERSION="1.64"
# Install packages required for build:
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
libunwind-dev clang build-essential libssl-dev pkg-config lldb \
bash-completion npm dotnet6 \
python-is-python3 direnv uuid-runtime python3-distutils python3-pip python3-venv
# Install Rust:
USER vscode
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain ${RUSTVERSION} -y
# Install other dependencies:
COPY install-dependencies.sh .
RUN ./install-dependencies.sh
# Setup direnv for Python stuff:
RUN echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
USER root
RUN rm install-dependencies.sh