Explorar el Código

[website] Add local dockerignore to offer automated build

DOCKER_BUILDKIT=1 docker build . -t gethue/website:latest -f tools/docker/website/gethue.Dockerfile --build-arg lang=en
Romain Rigaux hace 4 años
padre
commit
fc5537ecca
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. 5 0
      .dockerignore
  2. 1 1
      tools/docker/website/gethue.Dockerfile

+ 5 - 0
.dockerignore

@@ -0,0 +1,5 @@
+build
+logs
+node_modules
+.git
+.vscode

+ 1 - 1
tools/docker/website/Dockerfile → tools/docker/website/gethue.Dockerfile

@@ -12,8 +12,8 @@ RUN wget https://github.com/gohugoio/hugo/releases/download/v0.62.0/hugo_0.62.0_
   && rm hugo*.deb \
   && pip install Pygments
 
+# Need from root to get Git history for last date modified of posts
 ADD . /gethue
-#ADD docs/gethue /gethue
 WORKDIR /gethue
 
 RUN hugo --source docs/gethue --baseURL ""