Browse Source

Add git info to Docker #238 (#257)

pull/1/head
rozetko 6 years ago committed by GitHub
parent
commit
879f4cdac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .dockerignore
  2. 3
      analytics/.dockerignore
  3. 4
      docker-compose.yml
  4. 1
      server/.dockerignore
  5. 7
      server/Dockerfile

4
.dockerignore

@ -0,0 +1,4 @@
*
!.git/HEAD
!.git/refs
!server

3
analytics/.dockerignore

@ -1,5 +1,2 @@
.git
npm-debug
node_modules
__pycache__
.vscode

4
docker-compose.yml

@ -2,7 +2,9 @@ version: '2'
services:
server:
image: hastic/server:latest
build: server
build:
dockerfile: server/Dockerfile
context: .
environment:
HASTIC_API_KEY: ${HASTIC_API_KEY}
ZMQ_CONNECTION_STRING: ${ZMQ_CONNECTION_STRING}

1
server/.dockerignore

@ -1,4 +1,3 @@
.git
node_modules
npm-debug
.vscode

7
server/Dockerfile

@ -11,14 +11,11 @@ RUN apt-get install curl \
VOLUME [ "/var/www/data" ]
WORKDIR /var/www/server
COPY . /var/www
COPY package.json /var/www/server
WORKDIR /var/www/server
RUN npm install
COPY . /var/www/server
RUN npm run build
ENV INSIDE_DOCKER true

Loading…
Cancel
Save