-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 738 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:latest
# Workaround https://unix.stackexchange.com/questions/2544/how-to-work-around-release-file-expired-problem-on-a-local-mirror
RUN echo "Acquire::Check-Valid-Until \"false\";\nAcquire::Check-Date \"false\";" | cat > /etc/apt/apt.conf.d/10no--check-valid-until
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm-256color
# install requrire packages
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
build-essential \
cmake \
ninja-build \
uncrustify \
sudo \
less \
vim
RUN pip3 install termcolor
RUN useradd -ms /bin/bash abn-user
RUN usermod -aG sudo abn-user
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER abn-user
WORKDIR /var/local/abn
CMD bash