-
Notifications
You must be signed in to change notification settings - Fork 0
/
devbox.Dockerfile
33 lines (28 loc) · 1001 Bytes
/
devbox.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
FROM rbecheras/ubuntu-node:18.04-8
ARG username="developer"
ARG password="developer"
ARG uid="1000"
LABEL Author="Rémi Becheras <[email protected]>"
USER 0
RUN deluser node \
&& adduser \
--disabled-password \
--home "/home/${username}" \
--shell /bin/bash \
--uid "${uid}" \
--gecos "Docker developer account" \
"${username}" \
&& echo "${username}:${password}" | chpasswd
RUN npm i -g generate \
generate-swap-project \
generate-swap-generator
USER "${username}"
WORKDIR "/home/${username}"
RUN git config --global alias.graphall "log --graph --oneline --decorate --tags --all" \
&& git config --global alias.ga "log --graph --oneline --decorate --tags --all" \
&& git config --global alias.graphhead "log --graph --oneline --decorate --tags HEAD" \
&& git config --global alias.gh "log --graph --oneline --decorate --tags HEAD"
WORKDIR "/home/${username}/app"
VOLUME [ "/home/${username}/app" ]
EXPOSE 8448
CMD [ "bash" ]