Skip to content

Commit

Permalink
feat: set environment variables in .bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Nov 5, 2024
1 parent df59864 commit 6221371
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ RUN apt-get update -y -q \
&& apt-get clean -y -q \
&& rm -rf /var/lib/apt/lists/*

ENV CXX=clang++ \
CC=clang

RUN useradd -m -s /bin/bash endstone \
&& echo "endstone:endstone" | chpasswd \
&& adduser endstone sudo \
Expand All @@ -40,6 +37,12 @@ RUN useradd -m -s /bin/bash endstone \
COPY conan-profile /home/endstone/.conan2/profiles/default
RUN chown -R endstone:endstone /home/endstone/.conan2

RUN ( \
echo 'export CC=clang'; \
echo 'export CXX=clang++'; \
echo 'export PATH=$PATH:/home/endstone/.local/bin'; \
) >> /home/endstone/.bashrc

RUN ( \
echo 'LogLevel DEBUG2'; \
echo 'PasswordAuthentication yes'; \
Expand Down

0 comments on commit 6221371

Please sign in to comment.