summaryrefslogtreecommitdiffstats
path: root/Dockerfile
AgeCommit message (Collapse)Author
2018-01-31Fix Docker buildRyan Skoblenick
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
2017-10-21Update Dockerfile and Snap build to reflect move to depBjørn Erik Pedersen
See #3988
2017-09-25Split go build in DockerfileThibault Jamet
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>
2017-09-25Update Dockerfile to benefit build cacheThibault Jamet
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>
2017-07-26Dockerfile: Run go install with -ldflags '-s -w'Anthony Fok
This reduce the Docker image size from 27 MB to 20.5 MB.
2017-07-26Dockerfile: Reduce image size from 277MB to 27MBMaik Ellerbrock
"xtrem" awesome container size optimization by using alpine:3.6 as base image and by installing Go at build time. See #3730 and #3738
2017-07-23Dockerfile: Optimize Docker image sizeMaik Ellerbrock
Reduce Docker image size from 428 MB to 277 MB. See #3674
2017-06-28Dockerfile: Update Dockerfile and add Docker optimizationsMaik Ellerbrock
2017-06-13Update source path in Dockerfile due to the org transitiondigitalcraftsman
2017-05-14Dockerfile: Remove ENTRYPOINT Gilbert Gilb's
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.
2017-02-23Update Docker file to Go 1.8Hauke Löffler
* new go-version, switch to alpine (reduce size by 500mb) * use govendor
2016-12-28Fix DockerfileGilbert Gilb's
2016-11-23Fix alignment of go gets in DockerfileEvan Purkhiser
2016-10-01Update Dockerfile to pull in missing test dependencyAndrew Speed
Add the missing github.com/fortytw2/leaktest dependency required for hugo_site_tests.
2016-06-08Fix urlesc import url in DockerfileCody W. Opel
2016-06-05Get Dockerfile up-to-dateBjørn Erik Pedersen
2016-04-20Update import path of fsnotifyAnthony Fok
Rename "gopkg.in/fsnotify.v1" to "github.com/fsnotify/fsnotify" per upstream recommendation. See https://github.com/fsnotify/fsnotify/issues/108 for rationale.
2016-03-10Update Dockerfile to use golang:1.6 base imageIvan Fraixedes
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
2016-01-04Use a Docker container to build hugoSven Dowideit
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>