Skip to content

Commit 75974a5

Browse files
committed
fix env bug
1 parent e18507e commit 75974a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ RUN adduser dev --disabled-password --gecos "" && \
4040
ADD fs/ /
4141
USER dev
4242
ENV HOME /home/dev
43+
ENV TERM xterm-256color
4344
WORKDIR /go
4445
EXPOSE 9000
4546
EXPOSE 35729
@@ -108,6 +109,7 @@ RUN cd /tmp &
108109
RUN vim +PluginInstall +qall && \
109110
sudo ln /home/dev/.vimrc /root/.vimrc && \
110111
sudo ln /home/dev/.tmux.conf /root/.tmux.conf && \
112+
sudo ln /home/dev/.profile /root/.profile && \
111113
sudo ln -s /home/dev/.vim /root/.vim && \
112114
# enable yeoman
113115
sudo npm install -g npm@latest && \

fs/home/dev/.profile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# ~/.profile: executed by Bourne-compatible login shells.
23

34
if [ "$BASH" ]; then
@@ -12,5 +13,7 @@ else
1213
export TERM='xterm-color'
1314
fi
1415

15-
mesg n
16+
export PATH=/usr/local/go/bin/:$PATH
17+
export TERM="xterm-256color"
1618

19+
mesg n

0 commit comments

Comments
 (0)