-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 794 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (21 loc) · 794 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
29
30
FROM docker.io/library/ubuntu:jammy
SHELL ["/bin/bash", "-c"]
USER root
ARG TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN rm /etc/apt/apt.conf.d/docker-*
RUN apt-get -y update && \
yes | unminimize && \
apt-get -y install sudo man-db man vim-tiny curl wget ca-certificates make && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ARG USER_NAME=jammy
ARG USER_UID=1000
ARG PASSWD=passwd
RUN useradd -m -s /bin/bash -u ${USER_UID} ${USER_NAME} && \
echo "${USER_NAME}:${PASSWD}" | chpasswd && \
usermod -aG sudo ${USER_NAME} && \
echo "${USER_NAME} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER ${USER_NAME}
USER ${USER_NAME}
RUN bash <(curl -sL https://raw.githubusercontent.com/leviosa42/dotfiles/main/install.sh)