-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile_local
63 lines (57 loc) · 1.91 KB
/
Dockerfile_local
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
63
FROM ubuntu:18.04
LABEL maintainer="orielh@anyvision.co"
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip \
python3-dev \
python3-setuptools \
vim \
sudo \
curl \
wget \
libpq-dev \
net-tools \
gcc \
libavdevice-dev \
pkg-config \
libsm6 \
libxext6 \
libxrender-dev \
iputils-ping \
sshpass \
openssh-client \
git \
apt-transport-https \
gnupg2 \
iproute2 \
rsync \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common \
&& ln -s /usr/bin/python3 /usr/local/bin/python \
&& pip3 install --upgrade pip \
&& apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* \
&& curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - \
&& apt-get install nodejs -y --no-install-recommends \
&& curl -L https://github.com/rancher/rke/releases/download/v1.1.3/rke_linux-amd64 -o /tmp/rke \
&& chmod +x /tmp/rke && mv /tmp/rke /usr/local/bin/ \
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - \
&& echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list \
&& apt-get update && apt-get install -y kubectl
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable"
RUN apt-get update && apt-get install -y --no-install-recommends \
docker-ce docker-ce-cli containerd.io
# Set the locale
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
COPY ./requirements3.txt /tmp/requirements3.txt
RUN pip3 install -r /tmp/requirements3.txt \
&& rm /tmp/requirements3.txt
COPY ./entrypoint.sh environ /
RUN chmod ugo+x /entrypoint.sh
RUN echo "NAME_REGEX=[A-Z,a-z,0-9]" >> /etc/adduser.conf
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bash"]