Age | Commit message (Collapse) | Author |
|
The present Dockerfile in master does not build a Hugo container. The
build container prematurely exits because `dep ensure` can not locate
`Gopkg.toml` due to the source files not being copied/added to the
container prior to running this command. The minimal change require
to resolve the issue is merely move the ADD source before the RUN dep.
Fixes #4076
Resolves #4077
|
|
See #3988
|
|
To maximize the usage of cache, split the govendor get in steps:
- govendor fetch to get the pinned versions of dependencies
- go install to actually build the binary
Doing so allows not to re-download the whole dependencies when changing
lines in hugo repository
The current Dockerfile generates an image of 16.6MB
Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
|
|
Docker has recently introduces buikld-stages (as of version 17.05)
Build stages allows to benefit the docker build cache as well as
reducing the size of the resulting image c.f.
https://docs.docker.com/engine/userguide/eng-image/multistage-build/
This change allows to have faster builds when running `docker build`
several times after changing some little code
Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
|
|
This reduce the Docker image size from 27 MB to 20.5 MB.
|
|
"xtrem" awesome container size optimization
by using alpine:3.6 as base image
and by installing Go at build time.
See #3730 and #3738
|
|
Reduce Docker image size from 428 MB to 277 MB.
See #3674
|
|
|
|
|
|
It's pointless to set `/bin/sh` as entrypoint. `/bin/sh` is already the default command, and on the top of that, setting `/bin/sh` as entrypoint ignores the command.
|
|
* new go-version, switch to alpine (reduce size by 500mb)
* use govendor
|
|
|
|
|
|
Add the missing github.com/fortytw2/leaktest dependency required for
hugo_site_tests.
|
|
|
|
|
|
Rename "gopkg.in/fsnotify.v1" to "github.com/fsnotify/fsnotify"
per upstream recommendation.
See https://github.com/fsnotify/fsnotify/issues/108 for rationale.
|
|
Hugo has been confirmed which runs on Golang 1.6, as travis uses 1.6
vesion. Dockerfile must be consistend with it so it has to use golang:1.6
as base image than golang:1.5
|
|
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
|