-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (34 loc) · 828 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
# Dotfiles test environment
FROM ubuntu:18.04
MAINTAINER Ryosuke SATO <rskjtwp@gmail.com>
LABEL Description="This image is used to test my dotfiles installation and running"
# Initialize
RUN apt update && \
apt install -y \
zsh \
vim \
git \
curl \
tmux \
python3 \
language-pack-en-base \
language-pack-en \
gcc \
make \
ncurses-dev \
emacs \
&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Add normal user
RUN useradd -ms /bin/zsh ubuntu
USER ubuntu
WORKDIR /home/ubuntu
ADD . .dotconfig/dotfiles
RUN python3 .dotconfig/dotfiles/install.py
ENV SPACEMACS_BRANCH develop
RUN git clone --branch ${SPACEMACS_BRANCH} https://github.com/syl20bnr/spacemacs ~/.emacs.d
RUN emacs -batch -l ~/.emacs.d/init.el
CMD ["/bin/zsh"]