fix(docker): fix the building process of docker image (#2844)

Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
This commit is contained in:
Shihta Kuan 2022-02-08 06:40:51 +08:00 committed by GitHub
parent 5dd0cfb8c7
commit 380e6fccb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 3 deletions

View File

@ -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 # Overrides
!authelia-linux-* !authelia-linux-*

View File

@ -55,7 +55,7 @@ ENV PATH="/app:${PATH}" \
RUN \ RUN \
apk --no-cache add ca-certificates su-exec tzdata 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 \ RUN \
chmod 0666 /app/.healthcheck.env chmod 0666 /app/.healthcheck.env