-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update devcontainer to latest Ubuntu and Rust version
- Loading branch information
1 parent
387f9e2
commit 77642f5
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04 | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 | ||
|
||
ARG RUST_VERSION=1.84 | ||
|
||
# Include lld linker to improve build times either by using environment variable | ||
# RUSTFLAGS="-C link-arg=-fuse-ld=lld" or with Cargo's configuration file (i.e see .cargo/config.toml). | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install clang lld libsqlite3-dev libmariadb-dev-compat libmariadb-dev libpq-dev pkg-config gh \ | ||
&& apt-get -y install clang lld libsqlite3-dev libmariadb-dev-compat libmariadb-dev libpq-dev pkg-config gh git-delta \ | ||
&& apt-get autoremove -y && apt-get clean -y | ||
|
||
USER vscode | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.79 --no-modify-path -y | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain ${RUST_VERSION} --no-modify-path -y | ||
|
||
RUN /home/vscode/.cargo/bin/cargo install cargo-release | ||
RUN /home/vscode/.cargo/bin/cargo install --locked cargo-outdated |