Skip to content

Commit 629c3df

Browse files
leshikuskurapov-peterpbchekin
authored
Fix env dockerfile (#48)
--------- Co-authored-by: Petr Kurapov <petr.a.kurapov@intel.com> Co-authored-by: Pavel Chekin <pbchekin@gmail.com>
1 parent f563e26 commit 629c3df

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/dockerfiles/env/Dockerfile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
FROM ubuntu:latest
22

3+
SHELL ["/bin/bash", "-xec"]
4+
35
RUN set -ex; \
46
export DEBIAN_FRONTEND=noninteractive; \
5-
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;\
6-
curl -sSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg; \
77
apt-get update -y; \
88
apt-get install -y --no-install-recommends --fix-missing \
9+
curl \
910
bash-completion \
1011
python3-pip \
11-
cmake gcc g++ ninja-build git clang-format \
12-
gh \
13-
; \
12+
cmake gcc g++ ninja-build git clang-format; \
13+
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; \
14+
curl -sSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg; \
15+
apt-get update -y; \
16+
apt-get install -y --no-install-recommends --fix-missing gh; \
1417
rm -rf /var/lib/apt/lists/*
1518

1619
RUN pip install lit
1720

18-
SHELL ["/bin/bash", "-xec"]
21+
RUN useradd -m dev
22+
23+
USER dev
24+
WORKDIR /home/dev

0 commit comments

Comments
 (0)