Skip to content

Commit ab48a6a

Browse files
committed
Add python venv to profile.
1 parent 185488d commit ab48a6a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ USER $USERNAME
7878

7979
## Get pip as user. Create a user level python virtual environemnt.
8080
RUN python3 -m venv /app/docker_venv \
81-
&& chmod +x /app/docker_venv/bin/activate \
8281
&& . /app/docker_venv/bin/activate \
83-
&& python3 /home/$USERNAME/get-pip.py
82+
&& python3 /home/$USERNAME/get-pip.py \
83+
&& echo ". /app/docker_venv/bin/activate" >> /home/$USERNAME/.bashrc
84+
85+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)