-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nils Carstensen
committed
May 25, 2021
1 parent
eda196c
commit 047d1b8
Showing
1 changed file
with
31 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,31 @@ | ||
FROM ubuntu:20.04 | ||
|
||
USER root | ||
|
||
# General updating | ||
RUN apt-get update -y && apt-get upgrade -y | ||
|
||
# Instll required packages | ||
RUN set -ex && cd ~ \ | ||
&& apt-get install -y apt-utils 2>&1 \ | ||
&& apt-get install -y curl gnupg gnupg1 gnupg2 unzip tar \ | ||
&& apt-get install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev | ||
|
||
# Install Terraform | ||
ARG TERRAFORM_VERSION=0.14.10 | ||
ARG TERRAFORM_SHA256SUM=45d4a12ca7b5c52983f43837d696f45c5ed9ebe536d6b44104f2edb2e1a39894 | ||
RUN set -ex && cd ~ \ | ||
&& curl -sSLO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \ | ||
&& [ $(sha256sum terraform_${TERRAFORM_VERSION}_linux_amd64.zip | cut -f1 -d ' ') = ${TERRAFORM_SHA256SUM} ] \ | ||
&& unzip -o -d /usr/local/bin -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip \ | ||
&& rm -vf terraform_${TERRAFORM_VERSION}_linux_amd64.zip | ||
|
||
# Install Python3 | ||
ARG PYTHON_VERSION=3.9.5 | ||
ARG PYTHON_SHA256SUM= | ||
RUN set -ex && cd ~ \ | ||
&& curl -sSLO https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz \ | ||
&& [ $(sha256sum Python-${PYTHON_VERSION}.tgz | cut -f1 -d ' ') = ${PYTHON_SHA256SUM} ] \ | ||
&& tar -xf Python-${PYTHON_VERSION}.tgz \ | ||
&& cd Python-${PYTHON_VERSION} \ | ||
&& ./configure ––enable–optimizations |