-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayerfile
21 lines (17 loc) · 882 Bytes
/
Layerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM vm/ubuntu:18.04
# Install docker
RUN apt-get update && \
apt-get install apt-transport-https ca-certificates curl software-properties-common && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" && \
apt-get update && \
apt install docker-ce
# Install docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose
# Copy repository files
COPY / /root
RUN /root/pull-images.sh && docker-compose up -d traefik postgresql
RUN REPEATABLE docker-compose build --parallel
RUN BACKGROUND docker-compose up
RUN timeout 30 bash -c 'while ! curl -fsSo /dev/null localhost:8000; do sleep 1; done'