Selaa lähdekoodia

[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 4 vuotta sitten
vanhempi
commit
fc5537ecca
2 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  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 ""