forked from inpyjama/c-ninja-listings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (50 loc) · 1.19 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Copyright © 2023 inpyjama.com. All Rights Reserved.
# Author: Piyush Itankar <[email protected]>
#
FROM ubuntu:latest
# PLEASE CHANGE THESE TO SUIT YOUR CONFIG
ARG USER_NAME="c-ninja"
ARG USER_PASSWORD="c"
ARG GIT_NAME="C Ninja"
ARG GIT_EMAIL="[email protected]"
ENV USER_NAME $USER_NAME
ENV USER_PASSWORD $USER_PASSWORD
ENV CONTAINER_IMAGE_VER=v1.0.0
ENV DEBIAN_FRONTEND=noninteractive
RUN adduser --quiet --disabled-password --shell /bin/zsh --home /home/$USER_NAME --gecos "User" $USER_NAME
RUN echo "${USER_NAME}:${USER_PASSWORD}" | chpasswd && usermod -aG sudo $USER_NAME
RUN adduser $USER_NAME sudo
RUN apt-get update
RUN apt-get install --no-install-recommends -y \
ca-certificates \
sudo \
gdb-multiarch \
gcc-riscv64-unknown-elf \
binutils-common \
make \
curl \
git-core \
wget \
nano \
ssh \
tree \
less \
build-essential \
python3 \
python3-dev \
binutils \
make \
binutils-riscv64-linux-gnu \
qemu-system-riscv32 \
zsh \
xxd \
strace \
man
RUN yes | unminimize
# user specific configuration
USER $USER_NAME
# terminal colors with xterm
ENV TERM xterm
RUN git config --global user.email "$GIT_EMAIL"
RUN git config --global user.name "$GIT_NAME"