-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.node-dev
25 lines (22 loc) · 1.22 KB
/
Dockerfile.node-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
FROM namesmt/images-alpine:node
LABEL maintainer="[email protected]"
## +dev: enhancements for development :D
RUN apk add --no-cache git less
# Adding a simple command to change git remote connection from/to ssh/https
RUN touch /etc/profile.d/gitRemoteChanger.sh && \
echo $'alias git-ssh=\'git remote set-url origin \"\$\(git remote get-url origin \| sed -E \'\\\'\'s,\^https://\(\[\^/\]\*\)/\(.\*\)\$,git@\\1:\\2,\'\\\'\'\)\"\' >> /etc/profile.d/gitRemoteChanger.sh' && \
echo $'alias git-https=\'git remote set-url origin \"\$\(git remote get-url origin \| sed -E \'\\\'\'s,\^git@\(\[\^:\]\*\):/\*\(.\*\)\$,https://\\1/\\2,\'\\\'\'\)\"\' >> /etc/profile.d/gitRemoteChanger.sh' && \
source /etc/profile.d/gitRemoteChanger.sh
RUN sh -c "$(wget -qO- https://github.com/deluan/zsh-in-docker/releases/latest/download/zsh-in-docker.sh)" -- \
-x \
-t https://github.com/spaceship-prompt/spaceship-prompt \
-a 'SPACESHIP_USER_SHOW=false' \
-a 'SPACESHIP_DIR_TRUNC_REPO=false' \
-p command-not-found \
-p git \
-p history-substring-search \
-p z \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-syntax-highlighting
##