-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.arm64
34 lines (27 loc) · 1.29 KB
/
Dockerfile.arm64
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 registry1.dso.mil/ironbank/opensource/python:v3.11.3
ARG KUBECTL_VERSION="v1.23.5"
ARG COSIGN_VERSION="1.13.1"
USER 0
COPY --chown=1001:1001 . /app/
WORKDIR /tmp
RUN dnf install unzip git -y \
&& curl -LO "https://github.com/sigstore/cosign/releases/download/v1.13.1/cosign-linux-arm64" \
&& chmod 755 cosign-linux-arm64 \
&& mv cosign-linux-arm64 /usr/local/bin/cosign \
&& curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.15.1/go-containerregistry_Linux_arm64.tar.gz" > go-containerregistry.tar.gz \
&& tar xvzf go-containerregistry.tar.gz \
&& chmod 755 crane \
&& mv crane /usr/local/bin/ \
&& curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/arm64/kubectl" \
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \
&& curl -LO https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/0.6.0/linux-arm64/docker-credential-ecr-login \
&& chmod 755 docker-credential-ecr-login \
&& mv docker-credential-ecr-login /usr/local/bin/ \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install
USER 1001
WORKDIR /app/
RUN curl -sSL https://install.python-poetry.org | python3 - \
&& pip install .
ENTRYPOINT ["python3", "/app/imagesync.py"]