diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..399d8c3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +_site +.git +.github +.vscode +*.prof +/dist +gojekyll +gojekyll-race +coverage.out diff --git a/.gitignore b/.gitignore index ace420f..1080219 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ _site -/gojekyll *.prof -coverage.out /dist -gojekyll-race +/gojekyll +/gojekyll-race +coverage.out diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0693876 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM golang:1.8.3-alpine + +ADD . /go/src/github.com/osteele/gojekyll + +RUN \ + apk add --update gcc g++ git make python py-pip && \ + pip install Pygments && \ + cd $GOPATH/src/github.com/osteele/gojekyll && \ + go get -v && \ + make install && \ + rm -rf /var/cache/apk/* && \ + rm -rf $GOPATH/src/* + +EXPOSE 4000 + +ENTRYPOINT ["/go/bin/gojekyll"] + +CMD [ "--help" ] diff --git a/README.md b/README.md index 2ce9f07..04569ea 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,6 @@ Pre-requisites: 1. **Install go** (1) via [Homebrew](https://brew.sh): `brew install go`; or (2) [download](https://golang.org/doc/install#tarball). 2. [Optional] To use the `{% highlight %}` tag, you also need [Pygments](http://pygments.org): `pip install Pygments`. - First-time install: ```bash