-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
36 lines (27 loc) · 1.03 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
FROM node:14.17.0-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 \
git \
ca-certificates \
openjdk-11-jre \
zsh \
curl \
wget \
fonts-powerline \
procps
RUN npm install -g @nestjs/[email protected] [email protected]
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
USER node
WORKDIR /home/node/app
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 [ "tail", "-f" , "/dev/null" ]