-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (31 loc) · 1.06 KB
/
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
FROM archlinux/archlinux:latest
ARG DOTFILES=.dotfiles
ARG USERNAME=rokoucha
# Mirrorlist
RUN curl -sL "https://www.archlinux.org/mirrorlist/?country=JP&ip_version=4&ip_version=6&use_mirror_status=on" > /etc/pacman.d/mirrorlist
RUN sed -i -e "s/#Server/Server/g" /etc/pacman.d/mirrorlist
# Update & Install
RUN pacman -Syu --noconfirm --needed \
base \
base-devel \
git \
zsh
# Timezone & Language
ENV LANG en_GB.UTF-8
ENV TZ Asia/Tokyo
RUN echo -e "en_GB.UTF-8 UTF-8\nen_US.UTF-8 UTF-8" > /etc/locale.gen
RUN echo "LANG=en_GB.UTF-8" > /etc/locale.conf
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN locale-gen
# Fix sudo
# https://bugzilla.redhat.com/show_bug.cgi?id=1773148
RUN echo "Set disable_coredump false" > /etc/sudo.conf
# User
ENV SHELL /usr/bin/fish
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN useradd -G wheel -m -s /usr/bin/zsh ${USERNAME}
USER ${USERNAME}
WORKDIR /home/${USERNAME}
# Dotfiles
RUN bash -c "$(curl -sL https://dot.rokoucha.net)" -s deploy install-arch-cli install-cli
CMD [ "/usr/bin/fish", "--login" ]