Skip to content

Commit

Permalink
feat: Create a build script for Kano (close #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Apr 9, 2019
1 parent 1de790d commit 10da411
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/kano.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
cd kano
tar cvf src.tgz src
docker build --build-arg TAG=$KANO_TAG -f dockerfile -t kano:$KANO_TAG .
docker tag kano:$KANO_TAG 127.0.0.1:5000/kano:$KANO_TAG
docker push 127.0.0.1:5000/kano:$KANO_TAG
6 changes: 5 additions & 1 deletion build/kano/dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ARG TAG=latest
FROM kalisio/kano:${TAG}

COPY . /
COPY src.tgz .
RUN tar xvf src.tgz

WORKDIR /opt/kano
RUN npm run build

0 comments on commit 10da411

Please sign in to comment.