You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
442 B
30 lines
442 B
6 years ago
|
FROM python:3.6.6
|
||
7 years ago
|
|
||
|
EXPOSE 8000
|
||
|
|
||
6 years ago
|
VOLUME [ "/var/www/data" ]
|
||
7 years ago
|
|
||
|
COPY . /var/www
|
||
|
|
||
7 years ago
|
WORKDIR /var/www/analytics
|
||
|
|
||
|
RUN pip install -r requirements.txt
|
||
7 years ago
|
|
||
|
RUN apt-get update && apt-get install -y \
|
||
|
apt-utils \
|
||
|
gnupg \
|
||
6 years ago
|
curl \
|
||
7 years ago
|
python \
|
||
|
make \
|
||
|
g++ \
|
||
|
git
|
||
7 years ago
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
||
7 years ago
|
|
||
|
RUN apt-get update && apt-get install -y nodejs
|
||
|
|
||
7 years ago
|
WORKDIR /var/www/server
|
||
|
|
||
7 years ago
|
RUN npm install && npm run build
|
||
|
|
||
|
CMD ["npm", "start"]
|