Fix image build path error

This commit is contained in:
Hang Yan
2018-02-24 15:40:00 +08:00
parent 170acd9e1a
commit e119b30ebd
7 changed files with 43 additions and 9 deletions
@@ -0,0 +1,24 @@
version: '3'
services:
backend-server:
image: "172.30.1.1:5000/myproject/test-image"
build:
context: ../server
dockerfile: Dockerfile
env_file:
- ../docker_env.list
ports:
- 5000:4000
front-end:
image: "172.30.1.1:5000/myproject/test-image"
build:
context: ../web
dockerfile: Dockerfile
env_file:
- ../docker_env.list
ports:
- 8080:8080
depends_on:
- backend-server
@@ -0,0 +1,3 @@
FROM busybox:1.26.2
RUN touch /test
@@ -0,0 +1,3 @@
FROM busybox:1.26.2
RUN touch /test