-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (37 loc) · 1012 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
# Use the official Ubuntu 20.04 image
FROM ubuntu:20.04
ENV DISPLAY=host.docker.internal:0
ENV DEBIAN_FRONTEND=noninteractive
# Update package lists and install necessary packages
RUN apt update && apt install -y \
sudo \
nano \
git \
python3 \
build-essential \
libssl-dev \
python3-pip \
wget \
openssh-client \
cmake \
net-tools \
x11-apps \
libboost-all-dev \
libeigen3-dev \
lsb-release \
libkdl-parser-dev \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*
# Accept build arguments with default values
ARG USERNAME=default
ARG PASSWORD=default
# Create a new user and set up sudo privileges
RUN useradd -m -s /bin/bash $USERNAME && \
echo "$USERNAME:$PASSWORD" | chpasswd && \
usermod -aG sudo $USERNAME
# Set the new user as the default user
USER $USERNAME
WORKDIR /home/$USERNAME
RUN git clone https://github.com/ItsShriks/SystemTaiyaar.git
# Default command to run when the container starts
CMD ["bash"]