From 380e6fccb6c3391a24f4f50a8785e9f60ad906ab Mon Sep 17 00:00:00 2001 From: Shihta Kuan Date: Tue, 8 Feb 2022 06:40:51 +0800 Subject: [PATCH] fix(docker): fix the building process of docker image (#2844) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Michaud --- .dockerignore | 25 +++++++++++++++++++++++-- Dockerfile.dev | 2 +- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index a3946b784..7ceb64a02 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,26 @@ -# Ignore All -* +# CI/Git Directories +.git +.cache +.buildkite +.github +coverage.txt +Dockerfile* + +# Node Modules Directories +**/node_modules + +# Documentation +docs +examples + +# Dot Files and Markdown +.* +*.md + +# Other +internal/server/public_html +authelia.service +bootstrap.sh # Overrides !authelia-linux-* diff --git a/Dockerfile.dev b/Dockerfile.dev index c85077f2d..90ff74c9a 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -55,7 +55,7 @@ ENV PATH="/app:${PATH}" \ RUN \ apk --no-cache add ca-certificates su-exec tzdata -COPY --from=builder-backend /go/src/app/cmd/authelia/authelia /go/src/app/LICENSE /go/src/app/entrypoint.sh /go/src/app/healthcheck.sh /go/src/app/.healthcheck.env ./ +COPY --from=builder-backend /go/src/app/authelia /go/src/app/LICENSE /go/src/app/entrypoint.sh /go/src/app/healthcheck.sh /go/src/app/.healthcheck.env ./ RUN \ chmod 0666 /app/.healthcheck.env