Skip to content

Commit 6221371

Browse files
committed
feat: set environment variables in .bashrc
1 parent df59864 commit 6221371

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ RUN apt-get update -y -q \
2929
&& apt-get clean -y -q \
3030
&& rm -rf /var/lib/apt/lists/*
3131

32-
ENV CXX=clang++ \
33-
CC=clang
34-
3532
RUN useradd -m -s /bin/bash endstone \
3633
&& echo "endstone:endstone" | chpasswd \
3734
&& adduser endstone sudo \
@@ -40,6 +37,12 @@ RUN useradd -m -s /bin/bash endstone \
4037
COPY conan-profile /home/endstone/.conan2/profiles/default
4138
RUN chown -R endstone:endstone /home/endstone/.conan2
4239

40+
RUN ( \
41+
echo 'export CC=clang'; \
42+
echo 'export CXX=clang++'; \
43+
echo 'export PATH=$PATH:/home/endstone/.local/bin'; \
44+
) >> /home/endstone/.bashrc
45+
4346
RUN ( \
4447
echo 'LogLevel DEBUG2'; \
4548
echo 'PasswordAuthentication yes'; \

0 commit comments

Comments
 (0)