Skip to content

Commit

Permalink
Fix installing default venv packages (#18)
Browse files Browse the repository at this point in the history
* Fix installing default venv packages
* Use Bash as shell for Dockerfile
  • Loading branch information
gnadaban authored Jan 21, 2022
1 parent 4858633 commit 32a5c52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM ubuntu:20.04

# Use Bash shell for Python venv script
SHELL ["/bin/bash", "-c"]

# To make it easier for build and release pipelines to run apt-get,
# configure apt to not require confirmation (assume the -y argument by default)
ENV DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -33,6 +36,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& python3 -m venv /ado-venv \
# Make this the default venv for root
&& echo "source /ado-venv/bin/activate" >> ~root/.bashrc \
&& source /ado-venv/bin/activate \
&& pip install wheel \
&& pip install ansible==5.2.0 foodx-devops-tools==0.12.1 \
# Install .NETCore runtime dependency for the agent
Expand Down

0 comments on commit 32a5c52

Please sign in to comment.