Browse Source

fix docker files

pull/1/head
amper43 6 years ago
parent
commit
3c69271418
  1. 18
      Dockerfile_analytics
  2. 30
      Dockerfile_server

18
Dockerfile_analytics

@ -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"]

30
Dockerfile_server

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

Loading…
Cancel
Save