-
Notifications
You must be signed in to change notification settings - Fork 509
/
Dockerfile
54 lines (46 loc) · 1005 Bytes
/
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
#
# 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"
ENV USER_NAME $USER_NAME
ENV USER_PASSWORD $USER_PASSWORD
ENV CONTAINER_IMAGE_VER=v1.0.0
ENV DEBIAN_FRONTEND=noninteractive
RUN useradd -s /bin/zsh -d /home/$USER_NAME $USER_NAME
RUN echo "${USER_NAME}:${USER_PASSWORD}" | chpasswd && usermod -aG sudo $USER_NAME
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 \
unminimize
RUN yes | unminimize
# user specific configuration
USER $USER_NAME
# terminal colors with xterm
ENV TERM xterm