Browse Source

move config to folder

pull/1/head
amper43 6 years ago
parent
commit
fb9a7a4e22
  1. 2
      .gitignore
  2. 0
      Dockerfile_analytics
  3. 29
      Dockerfile_server
  4. 0
      config/config.example.json

2
.gitignore vendored

@ -1,6 +1,6 @@
data
dist
config.json
config/config.json
node_modules/

0
Dockerfile → Dockerfile_analytics

29
Dockerfile_server

@ -0,0 +1,29 @@
FROM alpine:3.8
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
WORKDIR /var/www/server
RUN npm install && npm run build
CMD ["npm", "start"]

0
config.example.json → config/config.example.json

Loading…
Cancel
Save