-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (32 loc) · 906 Bytes
/
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
FROM ubuntu:bionic
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install \
ca-certificates \
curl \
jq \
wget \
unzip \
--no-install-recommends -y
# Install Packer
RUN PACKER=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r .current_version) \
&& wget --no-verbose --tries=5 --timeout=5 \
"https://releases.hashicorp.com/packer/${PACKER}/packer_${PACKER}_linux_amd64.zip" -O /tmp/packer.zip && \
unzip /tmp/packer.zip -d /tmp && \
mv /tmp/packer /usr/bin/packer && \
chmod +x /usr/bin/packer
FROM ubuntu:bionic
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && \
apt-get install \
ca-certificates \
jq \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
--no-install-recommends -y
RUN pip3 install awscli -q
COPY --from=0 /usr/bin/packer /usr/bin/packer
WORKDIR /app
ENTRYPOINT [ "packer" ]