@@ -17,18 +17,12 @@ ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
17
17
# at container creation time
18
18
RUN mkdir -p /home/developer/
19
19
20
- COPY dotfiles/.vimrc /root/.vimrc
21
- COPY dotfiles/.gitconfig /root/.gitconfig
22
- COPY dotfiles/.bash_aliases /root/.bash_aliases
23
- COPY dotfiles/.eslintrc.json /root/.eslintrc.json
24
- COPY dotfiles/jest.config.js /home/developer/jest.config.js
20
+ # Replace shell with bash so we can source files
21
+ RUN rm /bin/sh && ln -s /bin/bash /bin/sh
25
22
26
23
LABEL maintainer=
"Joseph Sinfield <[email protected] >"
27
24
LABEL runcommand="docker run --rm -ti -e http_proxy -e https_proxy -e HTTP_PROXY -e HTTPS_PROXY -e SSH_AUTH_SOCK=\$ SSH_AUTH_SOCK -v $(dirname \$ SSH_AUTH_SOCK):$(dirname \$ SSH_AUTH_SOCK) -v $(pwd):/home/developer/workspace -w /home/developer/workspace jslog/development-env"
28
25
29
- # Replace shell with bash so we can source files
30
- RUN rm /bin/sh && ln -s /bin/bash /bin/sh
31
-
32
26
# Set debconf to run non-interactively
33
27
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
34
28
@@ -47,6 +41,7 @@ RUN apt-get update && apt-get install -y -q --no-install-recommends \
47
41
&& rm -rf /var/lib/apt/lists/*
48
42
49
43
# Install vim and customise
44
+ COPY dotfiles/.vimrc /root/.vimrc
50
45
RUN add-apt-repository ppa:jonathonf/vim -y \
51
46
&& apt update \
52
47
&& apt install vim -y
@@ -63,18 +58,24 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh
63
58
&& nvm alias default $NODE_VERSION \
64
59
&& nvm use default
65
60
66
- RUN source /root/.bashrc
67
-
68
61
# Install npm packages
62
+ RUN source /root/.bashrc
69
63
RUN npm install -g eslint \
70
64
&& npm install -g eslint-config-airbnb-base \
71
65
&& npm install -g eslint-plugin-import \
72
66
&& npm install -g jest
73
67
74
- # Copy project templates
68
+ # Copy global dotfiles
69
+ COPY dotfiles/.gitconfig /root/.gitconfig
70
+ COPY dotfiles/.bash_aliases /root/.bash_aliases
71
+ COPY dotfiles/.eslintrc.json /root/.eslintrc.json
72
+ COPY dotfiles/jest.config.js /home/developer/jest.config.js
73
+ RUN source /root/.bashrc
74
+
75
+ # Copy project templates with local dotfiles
75
76
COPY templates/tdd/ /home/developer/templates/tdd/
76
77
COPY dotfiles/jest.config.js /home/developer/templates/tdd/.
77
78
COPY dotfiles/.gitignore /home/developer/templates/tdd/.
78
79
COPY dotfiles/.eslintrc.json /home/developer/templates/tdd/.
79
80
80
- LABEL version="1.1.2 "
81
+ LABEL version="1.1.3 "
0 commit comments