-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
36 lines (26 loc) Β· 886 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
FROM ubuntu:20.04
LABEL maintainer="Nuno Rafael Rocha (nunorafaelrocha.com)"
ENV DEBIAN_FRONTEND=noninteractive
# Configure environment
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90nuno && \
echo 'DPkg::Options "--force-confnew";' >> /etc/apt/apt.conf.d/90nuno && \
apt-get update && apt-get install -y \
curl \
locales \
sudo \
&& \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/* && \
useradd --uid=1010 --user-group --create-home nuno && \
echo 'nuno ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-nuno && \
echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
ENV PATH=/home/nuno/bin:/home/nuno/.local/bin:$PATH \
LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
USER nuno
# Match the default working directory
WORKDIR /home/nuno
COPY --chown=1010 . .dotfiles
RUN cd ~/.dotfiles && \
CI=true ./bin/dot