Use build in compose

TestBranch9
lars 2023-10-06 15:37:44 -05:00
parent 2f141ba9c1
commit af00f3729d
2 changed files with 13 additions and 9 deletions

View File

@ -1,10 +1,12 @@
version: '3.4'
services:
http-echo:
image: mendhak/http-https-echo:latest
expose:
- 8080
environment:
- VIRTUAL_PORT=8080
version: '3.4'
services:
http-echo:
build:
content: ./
dockerfile: httpecho.Dockerfile
expose:
- 8080
environment:
- VIRTUAL_PORT=8080
- VIRTUAL_HOST=${HOST}

2
httpecho.Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM mendhak/http-https-echo:latest
RUN echo "Hello"