Skip to content

Commit

Permalink
Stop ignoring .git folder for docker builds (#1182)
Browse files Browse the repository at this point in the history
* stop ignoring .git folder for docker builds
* docker: remove .git folder after compilation
* docker: include .git folder more precise
  • Loading branch information
mmacata committed Dec 18, 2020
1 parent 9d04130 commit 2efac98
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .dockerignore
@@ -1,9 +1,15 @@
docker
!docker/testdata
!docker/alpine/alpine-py38-ctypes.patch
!docker/alpine/alpine-py38-gisinit.patch
.git
.gitignore
.github
.travis
.travis.yml

# The following git files are needed by GRASS GIS to extract the revision
# during compilation. If you are not using one of the Dockerimages from this
# repository, delete the .git folder in your Dockerfile after compilation.
.git
!.git/HEAD
!.git/refs/heads
!.git/objects
.git/objects/*
1 change: 1 addition & 0 deletions docker/debian/Dockerfile_debian_pdal
Expand Up @@ -222,6 +222,7 @@ RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
# Reduce the image size
RUN apt-get autoremove -y
RUN apt-get clean -y
RUN rm -r /src/grass_build/.git

WORKDIR /scripts

Expand Down
1 change: 1 addition & 0 deletions docker/ubuntu/Dockerfile_ubuntu_pdal
Expand Up @@ -214,6 +214,7 @@ RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
# Reduce the image size
RUN apt-get autoremove -y
RUN apt-get clean -y
RUN rm -r /src/grass_build/.git

WORKDIR /scripts

Expand Down

0 comments on commit 2efac98

Please sign in to comment.