-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (35 loc) · 874 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
44
45
46
47
FROM ubuntu:18.04
USER root
RUN apt-get update && apt-get install -y \
python3-dev \
python3-pip \
build-essential \
python-dev \
python-pip \
nodejs \
npm
RUN npm i -g nodemon
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# dependancies
RUN apt-get update && apt-get install -y \
default-jdk \
python-tk \
python3-tk \
gunicorn \
python-numpy
# copy source
COPY . /app
ENV HOME=/app
RUN chmod a+rwx app
WORKDIR /app
RUN mkdir -p workspace
RUN chmod a+rwx workspace
RUN pip3 install -r requirements.txt
RUN pip install -r mustache/resources/requirements.txt
RUN pip install hdbscan
WORKDIR /app/mustache/resources
RUN python setup.py build_ext --inplace
WORKDIR /app
# EXPOSE 5000
# ENTRYPOINT [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "4", "wsgi:app" ]