-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 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
FROM alpine:3.18.4 as os
FROM os as development
RUN apk update && apk upgrade && apk add \
git \
python3 \
aws-cli \
vim \
make \
curl \
zsh \
wget \
jq \
tmux
FROM development as shell
# Default powerline10k theme, no plugins installed
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)"
WORKDIR /root
RUN git clone https://github.com/softmoth/zsh-vim-mode.git
RUN echo "source \"$HOME/zsh-vim-mode/zsh-vim-mode.plugin.zsh\"" >> /root/.zshrc
WORKDIR /
FROM shell as with_go
RUN apk add \
go
FROM with_go as with_hugo
RUN sh -c "$(wget -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.119.0/hugo_0.119.0_linux-arm64.tar.gz)"
RUN tar -xzvf hugo.tar.gz && rm -rf hugo.tar.gz
RUN mv hugo /usr/bin/hugo
ENTRYPOINT [ "zsh" ]
WORKDIR /host/