amper43
6 years ago
2 changed files with 0 additions and 42 deletions
@ -1,19 +0,0 @@
|
||||
FROM python:3.6.6 |
||||
|
||||
EXPOSE 8000 |
||||
|
||||
VOLUME [ "/var/www/data" ] |
||||
|
||||
COPY analytics /var/www |
||||
|
||||
WORKDIR /var/www/analytics |
||||
|
||||
RUN pip install -r requirements.txt \ |
||||
&& apt-get update && apt-get install -y \ |
||||
gnupg \ |
||||
curl \ |
||||
make \ |
||||
g++ \ |
||||
git |
||||
|
||||
CMD ["python", "server.py"] |
@ -1,23 +0,0 @@
|
||||
FROM python:3.6.6 |
||||
|
||||
VOLUME [ "/var/www/data" ] |
||||
|
||||
COPY server /var/www/ |
||||
|
||||
WORKDIR /var/www/server |
||||
|
||||
RUN apt-get install curl \ |
||||
bash \ |
||||
gnupg \ |
||||
curl \ |
||||
make \ |
||||
g++ \ |
||||
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \ |
||||
&& apt-get update \ |
||||
&& apt-get install nodejs \ |
||||
&& npm install \ |
||||
&& npm run build |
||||
|
||||
ENV INSIDE_DOCKER true |
||||
|
||||
CMD ["npm", "start"] |
Loading…
Reference in new issue