forked from codeedu/live-imersao-fullcycle10-nestjs-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
34 lines (25 loc) · 894 Bytes
/
Dockerfile.dev
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
FROM node:16.16.0-slim
RUN apt update && apt install -y \
git gpg gnupg gpg-agent socat \
ca-certificates \
zsh \
curl \
wget \
fonts-powerline \
procps
RUN npm install -g @nestjs/[email protected]
USER node
RUN mkdir -p /home/node/app
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 [ ".docker/start.sh" ]
#CMD [ "tail", "-f", "/dev/null" ]