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:
juju committed 2021-12-09 17:02:31 +01:00
1 parent bc43e25e97
commit 844045de11
3 files changed
+3 -25

No files matched your search

-15
View File
@@ -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
-7
View File
@@ -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 -3
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.