Skip to content

Fix env dockerfile #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/dockerfiles/env/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
FROM ubuntu:latest

SHELL ["/bin/bash", "-xec"]

RUN set -ex; \
export DEBIAN_FRONTEND=noninteractive; \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list;\
curl -sSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg; \
apt-get update -y; \
apt-get install -y --no-install-recommends --fix-missing \
curl \
bash-completion \
python3-pip \
cmake gcc g++ ninja-build git clang-format \
gh \
; \
cmake gcc g++ ninja-build git clang-format; \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list; \
curl -sSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg; \
apt-get update -y; \
apt-get install -y --no-install-recommends --fix-missing gh; \
rm -rf /var/lib/apt/lists/*

RUN pip install lit

SHELL ["/bin/bash", "-xec"]
RUN useradd -m dev

USER dev
WORKDIR /home/dev