forked from mrserverless/docker-3musketeers
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (31 loc) · 882 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
FROM docker
ENV AWS_ECR_CRED_HELPER_VERSION="v0.7.1"
RUN apk --no-cache update && \
apk --no-cache add --upgrade \
make \
zip \
git \
curl \
py-pip \
openssl \
openssh \
bash \
gettext \
g++ \
python3 \
py3-pip \
py3-setuptools \
openssl-dev \
libffi-dev \
musl-dev \
docker-compose \
wget && \
update-ca-certificates && \
wget -nv -O /bin/docker-credential-ecr-login \
https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/${AWS_ECR_CRED_HELPER_VERSION#v}/linux-amd64/docker-credential-ecr-login \
&& chmod +x /bin/docker-credential-ecr-login && \
rm -rf /var/tmp/ && \
rm -rf /tmp/* && \
rm -rf /var/cache/apk/*
RUN mkdir -p ~/.docker && \
echo > ~/.docker/config.json '{ "credsStore": "ecr-login" }'