ci
Some checks failed
Talks slides — image & chart / vars (push) Successful in 2s
Talks slides — image & chart / Build container image (push) Failing after 41s
Talks slides — image & chart / Helm chart (push) Failing after 43s

This commit is contained in:
Le Prévost-Corvellec Arnault
2026-04-08 20:13:50 +02:00
parent 4c921843a6
commit 4ffed1b5fa
19 changed files with 695 additions and 0 deletions

22
server/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM nginx:alpine
RUN apk add --no-cache git
WORKDIR /usr/share/nginx/html
# Image figée au clone ; le conteneur met à jour via refresh.sh (git pull origin main).
# Seul le dossier content/ est extrait (sparse checkout) : léger et aligné sur la racine Nginx.
ARG TALKS_REPO_URL=https://git.specificat.io/arnault/Talks.git
ARG TALKS_BRANCH=main
ARG TALKS_SPARSE_DIR=content
RUN git clone --filter=blob:none --sparse --branch "${TALKS_BRANCH}" --single-branch "${TALKS_REPO_URL}" . \
&& git sparse-checkout init --cone \
&& git sparse-checkout set "${TALKS_SPARSE_DIR}" \
&& git config --global --add safe.directory /usr/share/nginx/html
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY refresh.sh /refresh.sh
RUN chmod +x /refresh.sh
CMD sh -c "/refresh.sh & exec nginx -g 'daemon off;'"