From 844045de11ffc417c56c0e9d0daed9b9a084bcfd Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Thu, 9 Dec 2021 17:02:31 +0100 Subject: [PATCH] feat(compose): mount html inside docker-compose instead of building image Signed-off-by: Julien CLEMENT --- .drone.yml | 15 --------------- Dockerfile | 7 ------- docker-compose.yml | 6 +++--- 3 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 .drone.yml delete mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 240f305..0000000 --- a/.drone.yml +++ /dev/null @@ -1,15 +0,0 @@ -kind: pipeline -name: build - -steps: - - name: publish - image: plugins/docker - settings: - repo: turboregistry:5000/juju/juju.re - tags: latest - insecure: true - registry: turboregistry:5000 - username: - from_secret: docker_username - password: - from_secret: docker_password diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8aa8c29..0000000 --- a/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM nginx:1.21.4 - -LABEL maintainer="Julien CLEMENT " - -EXPOSE 80 - -COPY html /usr/share/nginx/html diff --git a/docker-compose.yml b/docker-compose.yml index 8ac1cbc..d15b9ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,8 @@ version: "3.3" services: nginx: restart: always - build: - context: . - dockerfile: Dockerfile + image: nginx:1.21.4 ports: - "8000:80" + volumes: + - ./html:/usr/share/nginx/html