/
Dockerfile
29 lines (19 loc) 路 715 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
ARG UBUNTU_VERSION=22.04
FROM ubuntu:${UBUNTU_VERSION}
ENV DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get --no-install-recommends -y install \
sudo \
build-essential \
software-properties-common \
&& apt-get update \
&& apt-get --no-install-recommends -y install apt-utils curl git gpg-agent \
&& rm -rf /var/lib/apt/lists/*
RUN echo "Set disable_coredump false" >> /etc/sudo.conf
RUN adduser --disabled-password --gecos '' test && adduser test sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER test
COPY --chown=test:test . /home/test/dotfiles
ENV USER test
ENV PATH="/home/test/bin:${PATH}"
WORKDIR /home/test/dotfiles