-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (40 loc) · 1.52 KB
/
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
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
FROM debian:buster
MAINTAINER petr.messner@gmail.com
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y apt-utils
RUN apt-get install -y --no-install-recommends \
curl \
gnupg \
apt-transport-https \
python3 \
python3-venv \
python3-dev \
build-essential \
nginx-full
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
RUN curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN echo "deb https://deb.nodesource.com/node_6.x stretch main" > /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs
RUN apt-get install -y yarn
RUN python3 -m venv /venv-hub
RUN python3 -m venv /venv-agents
RUN /venv-hub/bin/pip install -U pip wheel
RUN /venv-hub/bin/pip install pyyaml aiohttp simplejson
RUN /venv-agents/bin/pip install -U pip wheel
RUN /venv-agents/bin/pip install pyyaml requests psutil
COPY overwatch-web/package.json /overwatch-web/
COPY overwatch-web/yarn.lock /overwatch-web/
RUN cd /overwatch-web && yarn install
COPY overwatch-basic-agents /overwatch-basic-agents/
COPY overwatch-hub /overwatch-hub/
COPY overwatch-web /overwatch-web/
RUN /venv-hub/bin/pip install /overwatch-hub
RUN /venv-agents/bin/pip install /overwatch-basic-agents
RUN cd /overwatch-web && yarn build
COPY runner.py /runner.py
COPY nginx.conf /nginx.conf
EXPOSE 8000
CMD ["python3", "/runner.py"]