forked from devopsloft/devopsloft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (27 loc) · 949 Bytes
/
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
FROM ubuntu:18.04
COPY requirements-docker.txt /home/
COPY .env spin-docker.py docker-compose.yml createPemFiles.py /home/
COPY web_s2i /home/web_s2i/
COPY db_s2i /home/db_s2i
COPY app_s2i /home/app_s2i
COPY modules /home/modules
COPY vault /home/vault
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip \
&& apt-get install libssl-dev \
&& apt-get install -y locales\
&& apt-get install -y curl \
&& curl -o /usr/local/bin/ecs-cli https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-linux-amd64-latest \
&& chmod 777 /usr/local/bin/ecs-cli \
&& locale-gen en_US.UTF-8 \
&& pip install -r /home/requirements-docker.txt \
&& mkdir -p /home/vault/config \
&& chmod 777 /home/vault \
&& curl -sSL https://get.docker.com/ | sh
ENV LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
WORKDIR /home
ENTRYPOINT [ "/bin/bash" ]