Merge commit '22287e6a56c5a8824da94f2f6b9a464fa3da4192'

pull/2/head
Kevan Ahlquist 2015-02-18 00:55:40 -06:00
commit 44ba4e8bb8
4 changed files with 10 additions and 9 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ logs/*
node_modules node_modules
.idea .idea
dist dist
dockerui

View File

@ -1,8 +1,7 @@
FROM crosbymichael/golang FROM scratch
COPY dockerui /
COPY dist /
COPY dockerui.go /app/
COPY dist/ /app/
WORKDIR /app/
RUN go build dockerui.go
EXPOSE 9000 EXPOSE 9000
ENTRYPOINT ["./dockerui"] ENTRYPOINT ["/dockerui"]

View File

@ -7,14 +7,15 @@ PORT ?= 9000
install: install:
npm install -g grunt-cli npm install -g grunt-cli
npm install
build: build:
grunt build grunt build
docker build --rm -t dockerui . docker build --rm -t dockerui .
build-release: build-release:
grunt release grunt build
docker build --rm -t dockerui . docker run --rm -v $(pwd):/src centurylink/golang-builder
test: test:
grunt grunt

View File

@ -1,4 +1,4 @@
package main package main // import "github.com/crosbymichael/dockerui"
import ( import (
"flag" "flag"