File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,19 @@ MAINTAINER Gruntwork <info@gruntwork.io>
3
3
4
4
# Install basic dependencies
5
5
RUN apt-get update && \
6
- DEBIAN_FRONTEND=noninteractive apt-get install -y git vim python3-pip jq sudo curl libffi-dev python3-dev
6
+ DEBIAN_FRONTEND=noninteractive apt-get install -y git vim python3-pip jq sudo curl libffi-dev python3-dev python3.12-venv
7
7
8
8
# Install Bats
9
9
RUN git clone https://github.com/bats-core/bats-core.git /tmp/bats-core && \
10
10
/tmp/bats-core/install.sh /usr/local && \
11
11
rm -r /tmp/bats-core
12
12
13
- # Upgrade pip
14
- RUN pip3 install -U pip
13
+ # enable venv
14
+ RUN python3 -m venv /opt/venv
15
+ ENV PATH=" /opt/venv/bin:$PATH "
15
16
16
- # Install AWS CLI
17
- RUN pip3 install awscli --upgrade --user
18
-
19
- # Install moto: https://github.com/spulec/moto
20
- # Lock cfn-lint and pysistent to last known working versions
21
- RUN pip3 install flask moto moto[server] cfn-lint pyrsistent
17
+ RUN pip3 install awscli --upgrade && \
18
+ pip3 install flask moto moto[server] cfn-lint pyrsistent
22
19
23
20
# Install tools we'll need to create a mock EC2 metadata server
24
21
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y net-tools iptables
You can’t perform that action at this time.
0 commit comments