-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathDockerfile
44 lines (28 loc) · 869 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
32
33
34
35
36
37
38
39
40
41
42
43
FROM python:3.6.8
RUN apt-get update && apt-get install -y \
g++ \
gcc \
libxslt-dev \
libssl-dev \
libffi-dev \
bash \
ncurses-dev \
curl \
libncurses5-dev \
libncursesw5-dev \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm typescript
RUN mkdir -p /opt/beagle/beagle/web/static
WORKDIR /opt/beagle
COPY beagle/web/static/package.json beagle/web/static/package-lock.json /opt/beagle/beagle/web/static/
WORKDIR /opt/beagle/beagle/web/static
RUN npm install && npm audit fix
COPY . /opt/beagle
WORKDIR /opt/beagle/beagle/web/static
RUN npm run build
WORKDIR /opt/beagle
RUN pip install ".[rekall]"
RUN mkdir -p /data/beagle
EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "12", "--timeout", "3000", "beagle.web.wsgi:app"]