|
|
@ -2,16 +2,19 @@ FROM python:3 |
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 8000 |
|
|
|
EXPOSE 8000 |
|
|
|
|
|
|
|
|
|
|
|
VOLUME [ "/var/www/data/anomalies", "/var/www/data/datasets", "/var/www/data/metrics", "/var/www/data/models", "/var/www/data/segments" ] |
|
|
|
VOLUME [ \ |
|
|
|
|
|
|
|
"/var/www/data/analytic_units", \ |
|
|
|
RUN pip install pandas |
|
|
|
"/var/www/data/datasets", \ |
|
|
|
RUN pip install seglearn |
|
|
|
"/var/www/data/metrics", \ |
|
|
|
RUN pip install scipy |
|
|
|
"/var/www/data/models", \ |
|
|
|
RUN pip install tsfresh |
|
|
|
"/var/www/data/segments" \ |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
COPY . /var/www |
|
|
|
COPY . /var/www |
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /var/www/server |
|
|
|
WORKDIR /var/www/analytics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt |
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
apt-utils \ |
|
|
|
apt-utils \ |
|
|
@ -21,10 +24,12 @@ RUN apt-get update && apt-get install -y \ |
|
|
|
make \ |
|
|
|
make \ |
|
|
|
g++ \ |
|
|
|
g++ \ |
|
|
|
git |
|
|
|
git |
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - |
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - |
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y nodejs |
|
|
|
RUN apt-get update && apt-get install -y nodejs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /var/www/server |
|
|
|
|
|
|
|
|
|
|
|
RUN npm install && npm run build |
|
|
|
RUN npm install && npm run build |
|
|
|
|
|
|
|
|
|
|
|
CMD ["npm", "start"] |
|
|
|
CMD ["npm", "start"] |
|
|
|