-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (41 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
47 lines (41 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM python:3.8.1-slim-buster
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
libxml2-dev \
libxslt1-dev \
nodejs \
ruby \
ruby-dev \
unzip \
xz-utils \
zlib1g-dev && \
apt-get clean && \
rm -rf /var/lib/apt
# Use specific version of shellcheck. It's useful to keep
# this in sync with the version in Homebrew so macOS developer
# workstations have the same version as this Docker image.
ARG SHELLCHECK_VERSION=0.6.0
RUN mkdir /tmp/shellcheck && \
cd /tmp/shellcheck && \
curl -# -O "https://storage.googleapis.com/shellcheck/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" && \
tar --xz -xvf shellcheck-v"${SHELLCHECK_VERSION}".linux.x86_64.tar.xz && \
cp shellcheck-v"${SHELLCHECK_VERSION}"/shellcheck /usr/bin/ && \
rm -rf /tmp/shellcheck
ARG TERRAFORM_VERSION=0.10.7
RUN mkdir -p /tmp/terraform && \
cd /tmp/terraform && \
curl -# -o terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform.zip && \
mv terraform /usr/bin && \
rm -rf /tmp/terraform
ARG TERRAGRUNT_VERSION=0.17.4
RUN mkdir /tmp/terragrunt && \
cd /tmp/terragrunt && \
curl -# -L -o terragrunt https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 && \
chmod +x terragrunt && \
mv terragrunt /usr/bin && \
rm -rf /tmp/terragrunt
RUN pip install pre-commit==1.21.0
ENTRYPOINT ["pre-commit"]