generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
30 lines (20 loc) · 1.01 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
#
# Copyright 2020- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
# Using python:3.9-slim
FROM python@sha256:088d9217202188598aac37f8db0929345e124a82134ac66b8bb50ee9750b045b
COPY requirements.txt /nca/
RUN python -m pip install -U pip wheel setuptools && pip install -r /nca/requirements.txt
RUN apt-get update && apt-get install -y curl graphviz && rm -rf /var/lib/apt/lists
RUN curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" --output /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && chmod 700 get_helm.sh \
&& ./get_helm.sh
RUN curl -L https://github.com/projectcalico/calicoctl/releases/download/v3.3.1/calicoctl --output /usr/local/bin/calicoctl \
&& chmod +x /usr/local/bin/calicoctl
RUN apt-get purge curl -y && apt-get autoremove -y
COPY nca/ /nca/
USER 9000
WORKDIR "/"
ENTRYPOINT ["python", "-m", "nca"]