Skip to content

Commit

Permalink
build: Bump base image from focal to jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaowang1998 committed Nov 4, 2024
1 parent 67bb715 commit 9279830
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal
FROM ubuntu:jammy

WORKDIR /root

Expand All @@ -7,17 +7,10 @@ COPY ./tools/scripts/lib_install ./tools/scripts/lib_install

RUN ./tools/scripts/lib_install/linux/install-dev.sh

# Set cpp, cc, and c++ to v10
RUN update-alternatives --set cc /usr/bin/gcc-10
RUN update-alternatives --set c++ /usr/bin/g++-10
RUN update-alternatives --set cpp /usr/bin/cpp-10

RUN ./tools/scripts/lib_install/linux/install-lib.sh

# NOTE:
# 1. `task` doesn't have an apt/yum package so we use its install script.
# 2. We don't want to install it using `install-prebuilt-packages.sh` since users may use that on
# their own machines and it would change their environment in a way that can't easily be undone.
# `task` doesn't have an apt/yum package so we use its install script.
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin

# Remove cached files
Expand Down

0 comments on commit 9279830

Please sign in to comment.