-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDockerfile
35 lines (27 loc) · 970 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
FROM python:3.10-alpine
ARG COMPOSE_VERSION=2.20.3
ARG AUTHENTICATOR_VERSION=0.4.0
WORKDIR /src
# Install Docker
RUN apk add --no-cache \
bash \
build-base \
curl \
docker-cli \
git \
jq \
libffi-dev \
openssh \
openssl-dev
# Install Docker Compose
RUN curl -SL https://github.com/docker/compose/releases/download/v${COMPOSE_VERSION}/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose && \
chmod a+x /usr/local/bin/docker-compose
# Install the AWS IAM Authenticator
RUN curl -SL https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AUTHENTICATOR_VERSION}_linux_amd64 -o /usr/local/bin/aws-iam-authenticator && \
chmod a+x /usr/local/bin/aws-iam-authenticator
# Install AWS CLI
RUN pip install pip --upgrade
RUN pip --no-cache-dir install awscli --upgrade
COPY . /src
# Install Hokusai
RUN pip install --no-cache-dir .