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: services:
csharp: csharp:
container_name: csharp # image name container_name: csharp # image name
image: cruxlight/csharp_sdk:1.0.0 image: cruxlight/csharp_dev:1.0.0
build: build:
context: ./c# context: ./c#
target: dev target: dev
@ -16,7 +16,7 @@ services:
- 5500:5000 - 5500:5000
golang: golang:
container_name: golang container_name: golang
image: cruxlight/golang_sdk:1.0.0 image: cruxlight/golang_dev:1.0.0
build: build:
context: ./golang context: ./golang
target: dev target: dev
@ -30,7 +30,7 @@ services:
- 5501:5000 - 5501:5000
nodejs: nodejs:
container_name: nodejs container_name: nodejs
image: cruxlight/nodejs:1.0.0 image: cruxlight/nodejs_dev:1.0.0
build: build:
context: ./nodejs context: ./nodejs
target: dev target: dev
@ -44,7 +44,7 @@ services:
- 5502:5000 - 5502:5000
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
container_name: python container_name: python
image: cruxlight/python:1.0.0 image: cruxlight/python_dev:1.0.0
build: build:
context: ./python context: ./python
target: dev target: dev
@ -55,8 +55,4 @@ services:
volumes: volumes:
- ./python/src/:/work - ./python/src/:/work
ports: ports:
- 5503:5000 - 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: services:
csharp: csharp:
container_name: csharp # image name container_name: csharp # image name
image: cruxlight/csharp_sdk:1.0.0 image: cruxlight/csharp_prod:1.0.0
build: build:
context: ./c# context: ./c#
target: prod target: prod
@ -12,7 +12,7 @@ services:
- 5500:5000 - 5500:5000
golang: golang:
container_name: golang container_name: golang
image: cruxlight/golang_sdk:1.0.0 image: cruxlight/golang_prod:1.0.0
build: build:
context: ./golang context: ./golang
target: prod target: prod
@ -22,7 +22,7 @@ services:
- 5501:5000 - 5501:5000
nodejs: nodejs:
container_name: nodejs container_name: nodejs
image: cruxlight/nodejs:1.0.0 image: cruxlight/nodejs_prod:1.0.0
build: build:
context: ./nodejs context: ./nodejs
target: prod target: prod
@ -32,7 +32,7 @@ services:
- 5502:5000 - 5502:5000
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
container_name: python container_name: python
image: cruxlight/python:1.0.0 image: cruxlight/python_prod:1.0.0
build: build:
context: ./python context: ./python
target: prod target: prod