We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--no-cache-dir
pip
1 parent ae53701 commit 91dcafbCopy full SHA for 91dcafb
docker/aws_lambda_layer/Dockerfile
@@ -4,12 +4,12 @@ WORKDIR /install
4
RUN yum install -y amazon-linux-extras
5
RUN amazon-linux-extras enable python3.8
6
RUN yum install -y python38 python38-devel python3-pip zip gcc
7
-RUN python3.8 -m pip install --upgrade pip && \
8
- python3.8 -m pip install virtualenv
+RUN python3.8 -m pip install --no-cache-dir --upgrade pip && \
+ python3.8 -m pip install --no-cache-dir virtualenv
9
RUN python3.8 -m venv lambda
10
RUN source lambda/bin/activate
11
# Python dependencies to be included in output zip file:
12
-RUN python3.8 -m pip install influxdb-client[ciso] -t /install/python
+RUN python3.8 -m pip install --no-cache-dir influxdb-client[ciso] -t /install/python
13
# Create zip file
14
RUN zip -r /install/python.zip python/
15
VOLUME ["/install"]
0 commit comments