This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
68 lines (62 loc) · 2.01 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
57
58
59
60
61
62
63
64
65
66
67
68
FROM ubuntu:18.04
MAINTAINER Nathan Hammond <info@loomengine.org>
# Install gcloud SDK.
RUN apt-get update && apt-get install -y \
curl \
lsb-release \
gnupg \
openssh-client \
&& CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" \
&& echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
&& apt-get update && apt-get install -y \
google-cloud-sdk \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Docker.
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
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 \
$(lsb_release -cs) stable"
RUN apt-get update && apt-get install -y \
docker-ce docker-ce-cli containerd.io \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Loom's OS dependencies.
RUN apt-get update && apt-get install -y \
build-essential \
libffi-dev \
libmariadbclient-dev \
libssl-dev \
python-dev \
python-pip \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U pip
# Install Loom
ADD ./portal /var/www/loom/portal
ADD ./client /opt/loom/src/client
ADD ./server /opt/loom/src/server
ADD ./utils /opt/loom/src/utils
ADD ./worker /opt/loom/src/worker
ADD ./bin /opt/loom/src/bin
ADD ./NOTICES /opt/loom/src/NOTICES
ADD ./LICENSE /opt/loom/src/LICENSE
ADD ./README.rst /opt/loom/src/README.rst
ADD ./build-tools /opt/loom/src/build-tools
ARG LOOM_VERSION
RUN cd /opt/loom/src/build-tools \
&& ./set-version.sh \
&& ./build-loom-packages.sh \
&& ./install-loom-packages.sh \
&& ./clean.sh
RUN loom-manage collectstatic --noinput