Merge branch 'docker-dev-guide_3-multistage'

master
jason.zhu 2021-02-08 15:44:08 +11:00
commit 817b6bffd2
2 changed files with 9 additions and 13 deletions

View File

@ -2,7 +2,7 @@ version: "3"
services:
csharp:
container_name: csharp # image name
image: cruxlight/csharp_sdk:1.0.0
image: cruxlight/csharp_dev:1.0.0
build:
context: ./c#
target: dev
@ -16,7 +16,7 @@ services:
- 5500:5000
golang:
container_name: golang
image: cruxlight/golang_sdk:1.0.0
image: cruxlight/golang_dev:1.0.0
build:
context: ./golang
target: dev
@ -30,7 +30,7 @@ services:
- 5501:5000
nodejs:
container_name: nodejs
image: cruxlight/nodejs:1.0.0
image: cruxlight/nodejs_dev:1.0.0
build:
context: ./nodejs
target: dev
@ -44,7 +44,7 @@ services:
- 5502:5000
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
container_name: python
image: cruxlight/python:1.0.0
image: cruxlight/python_dev:1.0.0
build:
context: ./python
target: dev
@ -56,7 +56,3 @@ services:
- ./python/src/:/work
ports:
- 5503:5000
first-public-dockerhub-image:
container_name: first-public-dockerhub-image
image: cruxlight/first-public-dockerhub-image:latest
build: ./first-public-dockerhub-image

View File

@ -2,7 +2,7 @@ version: "3.4"
services:
csharp:
container_name: csharp # image name
image: cruxlight/csharp_sdk:1.0.0
image: cruxlight/csharp_prod:1.0.0
build:
context: ./c#
target: prod
@ -12,7 +12,7 @@ services:
- 5500:5000
golang:
container_name: golang
image: cruxlight/golang_sdk:1.0.0
image: cruxlight/golang_prod:1.0.0
build:
context: ./golang
target: prod
@ -22,7 +22,7 @@ services:
- 5501:5000
nodejs:
container_name: nodejs
image: cruxlight/nodejs:1.0.0
image: cruxlight/nodejs_prod:1.0.0
build:
context: ./nodejs
target: prod
@ -32,7 +32,7 @@ services:
- 5502:5000
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
container_name: python
image: cruxlight/python:1.0.0
image: cruxlight/python_prod:1.0.0
build:
context: ./python
target: prod