-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a56e486
commit bc9f6b7
Showing
1 changed file
with
47 additions
and
0 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,47 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
############################################################################### | ||
# Install prereqs | ||
############################################################################### | ||
RUN apt-get update -qq \ | ||
&& apt-get -y install \ | ||
git \ | ||
curl \ | ||
sudo \ | ||
unzip \ | ||
python3-dev \ | ||
python3-pip \ | ||
build-essential \ | ||
# For PPAs | ||
software-properties-common \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
&& apt-get clean | ||
|
||
############################################################################### | ||
# Python/AWS CLI | ||
############################################################################### | ||
WORKDIR /tmp | ||
|
||
RUN python3 -m pip install setuptools \ | ||
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip \ | ||
&& unzip awscliv2.zip \ | ||
&& sudo aws/install \ | ||
&& aws --version | ||
|
||
############################################################################### | ||
# Install pre-built CMake | ||
############################################################################### | ||
RUN curl -sSL https://d19elf31gohf1l.cloudfront.net/_binaries/cmake/cmake-3.13-manylinux1-x64.tar.gz -o cmake.tar.gz \ | ||
&& tar xvzf cmake.tar.gz -C /usr/local \ | ||
&& cmake --version \ | ||
&& rm -f /tmp/cmake.tar.gz | ||
|
||
############################################################################### | ||
# Install entrypoint | ||
############################################################################### | ||
ADD entrypoint.sh /usr/local/bin/builder | ||
RUN chmod a+x /usr/local/bin/builder | ||
ENTRYPOINT ["/usr/local/bin/builder"] |