Skip to content

Commit e2ea148

Browse files
authored
Remove aws-cli from production image (#67)
This is been removed for a while now in some downstream applications[1], mainly to fix vulnerability warnings, but also we shouldn't ship things to production that aren't actually required at runtime (particularly when not verifying the install and pulling in a bunch of unrelated dependencies). [1] navapbc/pfml-starter-kit-app@6b61c64
1 parent 315596d commit e2ea148

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

template/{{app_name}}/Dockerfile.jinja

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,8 @@ RUN apt-get update -qq \
115115
libvips \
116116
libyaml-dev \
117117
postgresql-client \
118-
python-is-python3 \
119-
python3-venv \
120-
unzip \
121-
wget \
122118
&& apt-get clean \
123-
&& rm -rf /var/lib/apt/lists/* \
124-
&& curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" \
125-
&& unzip awscli-bundle.zip \
126-
&& ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws \
127-
&& rm -rf ./awscli-bundle awscli-bundle.zip
119+
&& rm -rf /var/lib/apt/lists/*
128120

129121
# Install custom db migrate script
130122
COPY bin/db-migrate /usr/bin/

0 commit comments

Comments
 (0)