mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-26 22:24:39 +01:00
Docker
This commit is contained in:
parent
71d03c3627
commit
319d3c4aeb
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
_site
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
.vscode
|
||||||
|
*.prof
|
||||||
|
/dist
|
||||||
|
gojekyll
|
||||||
|
gojekyll-race
|
||||||
|
coverage.out
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
_site
|
_site
|
||||||
/gojekyll
|
|
||||||
*.prof
|
*.prof
|
||||||
coverage.out
|
|
||||||
/dist
|
/dist
|
||||||
gojekyll-race
|
/gojekyll
|
||||||
|
/gojekyll-race
|
||||||
|
coverage.out
|
||||||
|
18
Dockerfile
Normal file
18
Dockerfile
Normal 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" ]
|
@ -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).
|
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`.
|
2. [Optional] To use the `{% highlight %}` tag, you also need [Pygments](http://pygments.org): `pip install Pygments`.
|
||||||
|
|
||||||
|
|
||||||
First-time install:
|
First-time install:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user