-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
62 lines (52 loc) · 1.49 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM nvidia/cuda:11.7.1-base-ubuntu20.04
# docker variables
SHELL ["/bin/bash", "-c"]
WORKDIR /var/folders/kubify
ENV DEBIAN_FRONTEND=noninteractive
ENV KUBIFY_TOOLS=/root/._kubify_tools
ENV KUBIFY_UNIQUE_COMPANY_ACRONYM=kubify-oss
ENV PATH=${PATH}:/var/folders/kubify/kubify/ops/tools/scripts
# conda config
ENV CONDA_DIR /opt/conda
ENV PATH=${PATH}:/opt/conda/bin
# apt cache
RUN apt update && apt install -y make sudo
RUN apt -y upgrade
COPY apt.lock .
RUN xargs apt -y install <apt.lock
COPY Makefile .
# node install
ENV NVM_DIR=${KUBIFY_TOOLS}/nvm
ENV PATH=${PATH}:$NVM_DIR/versions/node/v$NODE_VERSION/bin
ENV NODE_VERSION=18.13.0
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
RUN mkdir -p $NVM_DIR
RUN make node
# terraform install
ENV TFENV_TERRAFORM_VERSION=1.3.7
ENV PATH=${PATH}:/root/._kubify_tools
RUN make tfenv tfsec
# kubectl install
RUN make kubectl
# apt update
COPY apt.lock .
RUN make apt
ENV PATH=${PATH}:/opt/conda/bin
# COPY ./kubify/ops/tools/scripts/conda_install.sh ./kubify/ops/tools/scripts/conda_install.sh
# COPY ./kubify/ops/tools/scripts/conda_setup.sh ./kubify/ops/tools/scripts/conda_setup.sh
# RUN make conda
# python cache
COPY setup.py .
COPY Makefile .
COPY README.rst .
COPY USAGE.rst .
COPY .bandit.yml .
RUN python3 -m pip install --upgrade pip
RUN pip install --ignore-installed PyYAML
RUN pip install --upgrade pip requests
COPY kubify/ops/terraform ./ops/terraform
RUN make security pip package
# python update
COPY . .
RUN make develop kind kubectl
RUN make clean