Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf85280

Browse files
author
Adam Parkin
committed
Let awscli & boto float as they update so often
1 parent d31b290 commit bf85280

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN npm install -g markdownlint-cli
1919

2020
# needed for Pylint 2.0.0
2121
COPY requirements.txt /build/requirements.txt
22+
COPY requirements-float.txt /build/requirements-float.txt
2223

2324
# Note that these 3 commands have to be combined to save on built
2425
# image size. If we separate into multiple Docker commands then
@@ -27,5 +28,6 @@ COPY requirements.txt /build/requirements.txt
2728
# With this all as one command I found I saved over 100MB on the final
2829
# built image.
2930
RUN apk add --no-cache --update python3-dev gcc build-base && \
31+
pip3 install -r /build/requirements-float.txt && \
3032
pip3 install -r /build/requirements.txt && \
3133
apk del python3-dev gcc build-base

requirements-float.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are dependencies that are allowed to "float", ie not be
2+
# version pinned. For pinned dependencies see requirements.txt
3+
awscli
4+
boto3

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
autopep8==1.4.3
2-
awscli==1.16.67
32
bandit==1.5.1
43
black==18.9b0
5-
boto3==1.9.57
64
flake8==3.6.0
75
Markdown==3.0.1
86
pelican==4.0.0

0 commit comments

Comments
 (0)