|
|
|
@ -4,26 +4,16 @@ EXPOSE 8000
|
|
|
|
|
|
|
|
|
|
VOLUME [ "/var/www/data" ] |
|
|
|
|
|
|
|
|
|
COPY . /var/www |
|
|
|
|
COPY analytics config /var/www |
|
|
|
|
|
|
|
|
|
WORKDIR /var/www/analytics |
|
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt |
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
|
apt-utils \ |
|
|
|
|
RUN pip install -r requirements.txt && |
|
|
|
|
apt-get update && apt-get install -y \ |
|
|
|
|
gnupg \ |
|
|
|
|
curl \ |
|
|
|
|
python \ |
|
|
|
|
make \ |
|
|
|
|
g++ \ |
|
|
|
|
git |
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - |
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y nodejs |
|
|
|
|
|
|
|
|
|
WORKDIR /var/www/server |
|
|
|
|
|
|
|
|
|
RUN npm install && npm run build |
|
|
|
|
|
|
|
|
|
CMD ["npm", "start"] |
|
|
|
|
CMD ["python", "server.py"] |
|
|
|
|