-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile.minimal
49 lines (40 loc) · 1.14 KB
/
Dockerfile.minimal
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
FROM alpine:latest
MAINTAINER Kevin Sandermann <kevin.sandermann@gmail.com>
LABEL maintainer="kevin.sandermann@gmail.com"
RUN mkdir -p /root/download/
WORKDIR /root/download
RUN apk upgrade --update-cache --available && \
apk add --no-cache --update \
bash \
bash-completion \
ca-certificates \
coreutils \
curl \
git \
libffi-dev \
make \
nano \
openssh \
openssl \
python3 \
python3-dev \
py3-pip \
jq \
wget \
yq \
zip \
zsh && \
rm -rf /var/cache/apk/*
RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \
apk add --no-cache --update zsh-vcs && rm -rf /var/cache/apk/*
RUN apk add --no-cache --update gcc libc-dev linux-headers && rm -rf /var/cache/apk/*
RUN pip install azure-cli --break-system-packages
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
#GENERICS
ENV EDITOR nano
COPY .bashrc /root/.bashrc
COPY .zshrc /root/.zshrc
USER root
WORKDIR /root/project
CMD ["/bin/bash"]