-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (48 loc) · 1.56 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:24.04
LABEL maintainer "mi2428 <[email protected]>"
LABEL org.opencontainers.image.source https://github.com/mi2428/dotfiles
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
## only effective in x86_64 image
RUN sed -i".bak" -e 's/\/\/archive.ubuntu.com/\/\/ftp.jaist.ac.jp/g' /etc/apt/sources.list
RUN apt-get update \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
ca-certificates \
language-pack-ja \
locales \
software-properties-common \
&& locale-gen en_US.UTF-8 ja_JP.UTF-8 \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
curl \
git \
gnupg-agent \
iproute2 \
make \
sudo \
toilet \
&& add-apt-repository ppa:neovim-ppa/unstable \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y neovim
RUN groupadd wheel \
&& echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
WORKDIR /etc/skel
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh \
&& chmod +x /tmp/rustup.sh \
&& HOME=/etc/skel \
/tmp/rustup.sh -y
RUN git clone --depth 1 https://github.com/mi2428/dotfiles \
&& cd dotfiles \
&& HOME=/etc/skel CARGO_HOME=/etc/skel/.cargo PATH=/etc/skel/.cargo/bin:$PATH \
make ubuntu-docker
RUN cp ./dotfiles/var/docker/entrypoint.sh /sbin/entrypoint.sh \
&& chmod +x /sbin/entrypoint.sh
Run apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["/bin/zsh", "--login"]