-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (24 loc) · 1.11 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
FROM node:14.15.4-slim
RUN mkdir -p /usr/share/man/man1 && \
echo 'deb http://ftp.debian.org/debian stretch-backports main' | tee /etc/apt/sources.list.d/stretch-backports.list && \
apt update && apt install -y --no-install-recommends \
openjdk-11-jre \
git \
zsh \
curl \
wget \
fonts-powerline
USER node
WORKDIR /home/node/app
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.2/zsh-in-docker.sh)" -- \
-t https://github.com/romkatv/powerlevel10k \
-p git \
-p git-flow \
-p https://github.com/zdharma-continuum/fast-syntax-highlighting \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-a 'export TERM=xterm-256color'
RUN echo '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh' >> ~/.zshrc && \
echo 'HISTFILE=/home/node/zsh/.zsh_history' >> ~/.zshrc
CMD [ ".docker/entrypoint.sh" ]