-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (40 loc) · 1.35 KB
/
Dockerfile
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
48
49
50
FROM debian:bullseye-slim
ARG TERRAFORM_VERSION=1.9.3
ARG ANSIBLE_VERSION=2.6.13
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
curl \
gnupg \
unzip \
python3-pip \
awscli \
libayatana-appindicator3-1 \
fuse \
psmisc \
lsof \
procps \
libasound2 \
libnss3 \
libxss1 \
libxtst6 \
libgtk-3-0 \
&& pip3 install --no-cache-dir --upgrade pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LO "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" \
&& unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& mv terraform /usr/local/bin/ \
&& rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip
RUN curl -L -o /usr/local/bin/opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64_static \
&& chmod 755 /usr/local/bin/opa
RUN pip3 install --no-cache-dir ansible==${ANSIBLE_VERSION}
RUN curl -s https://keybase.io/docs/server_security/code_signing_key.asc | gpg --import \
&& curl -O https://prerelease.keybase.io/keybase_amd64.deb \
&& dpkg -i keybase_amd64.deb \
&& apt-get install -f \
&& rm keybase_amd64.deb
COPY kado /usr/local/bin/kado
ENV PATH="/opt/venv/bin:$PATH"
WORKDIR /workspace
#ENTRYPOINT ["tail", "-f", "/dev/null"]
ENTRYPOINT ["/usr/local/bin/kado"]