forked from Giskard-AI/giskard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layerfile
25 lines (19 loc) · 1.04 KB
/
Layerfile
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
FROM vm/ubuntu:18.04
# install docker-ce (from tutorial for ubuntu)
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 the root (i.e., repository root) to /root in the runner
COPY / /root
# TODO: log in to docker hub
# See https://webapp.io/docs/advanced-workflows#logging-in-to-docker to learn how to log in to docker
RUN REPEATABLE docker-compose -f docker-compose.dev.yml -f docker-compose.yml build
RUN docker-compose up -d
# TODO: change port to whatever is configured in your docker-compose.yml
EXPOSE WEBSITE localhost:19000