From 14931be4fc01f26f54142f0e691b6afde057b932 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Tue, 30 Jun 2020 13:28:36 +0200 Subject: Do not leave apk cache behind --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 721b64a..7f64956 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM nginx:alpine WORKDIR /cstate # Install hugo & git -RUN apk add hugo git +RUN apk add --no-cache hugo git # -- First Run -- @@ -16,4 +16,4 @@ RUN mkdir -p /cstate/themes/cstate COPY . /cstate/themes/cstate # Prepare the entrypoint files -COPY ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh \ No newline at end of file +COPY ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh -- cgit v1.2.3-70-g09d2 From 1423ff03363568617580799abaf872e280ade095 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Tue, 30 Jun 2020 13:29:10 +0200 Subject: Ingore .git directory to not bust the Docker cache if not actual files changed --- .dockerignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6b8710a --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git -- cgit v1.2.3-70-g09d2