1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-26 20:54:48 +01:00
This commit is contained in:
Oliver Steele 2017-07-15 17:03:27 -04:00
parent 71d03c3627
commit 319d3c4aeb
4 changed files with 30 additions and 4 deletions

9
.dockerignore Normal file
View File

@ -0,0 +1,9 @@
_site
.git
.github
.vscode
*.prof
/dist
gojekyll
gojekyll-race
coverage.out

6
.gitignore vendored
View File

@ -1,6 +1,6 @@
_site
/gojekyll
*.prof
coverage.out
/dist
gojekyll-race
/gojekyll
/gojekyll-race
coverage.out

18
Dockerfile Normal file
View File

@ -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" ]

View File

@ -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