feat(Docker): conteneurisation du site d'accueil
This commit is contained in:
parent
73da43db70
commit
c42584f401
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
image: docker:stable
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- docker images --filter "dangling=true" -q --no-trunc | xargs -r docker rmi
|
||||||
|
|
10
Caddyfile
Normal file
10
Caddyfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
:80 {
|
||||||
|
|
||||||
|
root * /usr/share/caddy
|
||||||
|
file_server
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
rewrite * /{http.error.status_code}.html
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
}
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM caddy:2-alpine
|
||||||
|
|
||||||
|
COPY Caddyfile /etc/caddy/Caddyfile
|
||||||
|
COPY index.html /usr/share/caddy/
|
||||||
|
COPY bulma.min.css /usr/share/caddy/
|
||||||
|
COPY fa-5.1.0.js /usr/share/caddy/
|
Loading…
Reference in New Issue
Block a user