feat(docs): améliorer les instructions Docker pour la construction et le lancement du site
This commit is contained in:
@@ -1,16 +1,30 @@
|
|||||||
|
|
||||||
# Démarrage avec Docker
|
# Démarrage avec Docker
|
||||||
|
|
||||||
Pour builder l'image Docker :
|
## Builder ou re-builder l'image Docker
|
||||||
|
|
||||||
|
Pour construire ou reconstruire l'image Docker (forcer le rebuild même si une image existe déjà) :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -t chill-site .
|
docker build --no-cache -t chill-site:latest .
|
||||||
```
|
```
|
||||||
|
|
||||||
Pour lancer le site en local :
|
## Lancer le site en local avec un nom de conteneur
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -p 1313:1313 chill-site
|
docker run --name chill-site-container -p 1313:1313 chill-site:latest -d
|
||||||
|
```
|
||||||
|
|
||||||
|
Pour relancer après un arrêt :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker start chill-site-container
|
||||||
|
```
|
||||||
|
|
||||||
|
Pour supprimer le conteneur (si besoin de re-builder et relancer) :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker rm -f chill-site-container
|
||||||
```
|
```
|
||||||
|
|
||||||
Le site sera accessible sur http://localhost:1313
|
Le site sera accessible sur http://localhost:1313
|
||||||
|
|||||||
Reference in New Issue
Block a user