-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (33 loc) · 1.53 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
37
FROM wodby/php:7.2
USER root
ADD ./files /srv
RUN set -xe; \
apk add --update --no-cache \
npm \
jq \
mc \
openjdk8-jre \
bash-completion \
yarn && \
wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar && \
chmod +x drush.phar && \
mv drush.phar /usr/local/bin/drush && \
echo "wodby ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
cp -r /srv/usr/local/bin/ /usr/local/
USER wodby
RUN git clone --depth=1 https://github.com/Bash-it/bash-it.git /home/wodby/.bash_it \
&& /home/wodby/.bash_it/install.sh \
&& sed -i -e 's/bobby/powerline-plain/g' /home/wodby/.bashrc \
&& sed -i -e 's/user_info scm python_venv ruby node cwd/user_info cwd scm/g' /home/wodby/.bash_it/themes/powerline-plain/powerline-plain.theme.bash \
&& source /home/wodby/.bashrc \
&& git config --global alias.nmerge "merge --no-ff" \
&& git config --global alias.co "checkout"\
&& git config --global alias.br "branch" \
&& git config --global alias.ci "commit" \
&& git config --global alias.st "status" \
&& git config --global alias.unstage "reset HEAD --" \
&& git config --global alias.last "log -1 HEAD" \
&& git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" \
&& echo "termtitle() { printf \"\033]0;\$*\007\"; }" >> ~/.bashrc \
&& echo "termtitle \$TERMINAL_TITLE" >> ~/.bashrc
WORKDIR /var/www/html