-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that we run tests outside of the Docker container, we now only need two stages in our multistage build: - one stage to build Python dependencies - another stage to copy in the dependencies and run the application
- Loading branch information
1 parent
702d92d
commit 87f8fd8
Showing
2 changed files
with
39 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
# Tell apt-get we're never going to be able to give manual | ||
# feedback: | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get update | ||
# Install security updates | ||
apt-get -y upgrade | ||
# Install packages | ||
apt-get -y install --no-install-recommends $@ | ||
# Delete cached files we don't need anymore | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters