-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
32 lines (23 loc) · 807 Bytes
/
Dockerfile.dev
File metadata and controls
32 lines (23 loc) · 807 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
31
32
FROM docker.io/library/ubuntu:jammy
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}
# WORKDIR /home/${USER_NAME}/.dotfiles
# COPY / .
# USER root
# RUN chown -R ${USER_NAME}:${USER_NAME} /home/${USER_NAME}/.dotfiles
USER ${USER_NAME}