diff --git a/.drone.yml b/.drone.yml index e794da4..8865f3d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,19 @@ trigger: event: - push +steps: + - name: docker-build-and-push + image: plugins/docker + settings: + dockerfile: Dockerfile + context: ./ + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/theo.dupin/portfolio + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + steps: - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef2c5a8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# Utilise l'image de base de Nginx +FROM nginx:alpine + +# Copie le contenu de ton site web dans le répertoire par défaut de Nginx +COPY . /usr/share/nginx/html + +# Expose le port 80 pour que le serveur web soit accessible +EXPOSE 80 + +# Commande par défaut pour lancer Nginx en mode non-démon +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file