add web deploy template

This commit is contained in:
Grégory Lebreton 2024-09-18 15:37:02 +02:00
commit 65ed269762
3 changed files with 27 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -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;"]

11
README.md Normal file
View File

@ -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
....

0
html/index.html Normal file
View File