feat(compose): mount html inside docker-compose instead of building image

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2021-12-09 17:02:31 +01:00
parent bc43e25e97
commit 844045de11
3 changed files with 3 additions and 25 deletions

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

@ -1,7 +0,0 @@
FROM nginx:1.21.4
LABEL maintainer="Julien CLEMENT <julien.clement@epita.fr>"
EXPOSE 80
COPY html /usr/share/nginx/html

@ -3,8 +3,8 @@ version: "3.3"
services: services:
nginx: nginx:
restart: always restart: always
build: image: nginx:1.21.4
context: .
dockerfile: Dockerfile
ports: ports:
- "8000:80" - "8000:80"
volumes:
- ./html:/usr/share/nginx/html