commit 65ed269762842c075ff29c03e089987fd40146ed Author: greg Date: Wed Sep 18 15:37:02 2024 +0200 add web deploy template diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..32af1d2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM nginx:1.21.6-alpine + +LABEL maintainer="greg.lebreton@hotmail.com" + +COPY --chown=nginx:nginx --chmod=755 ./html /usr/share/nginx/html + +RUN apk add --no-cache bash && \ + rm -rf /var/cache/apk/* && \ + chmod -R 755 /usr/share/nginx/html + +EXPOSE 80 +USER nginx + +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost/ || exit 1 + +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..251d3b0 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# WEB DEPLOY + +Ce projet modèle est pour déployer son site web via le CI/CD du garage + +## CONFIGURATION + +.... + +## UTILISATION + +.... \ No newline at end of file diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..e69de29