Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
0921f1e0
Commit
0921f1e0
authored
Jul 22, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心添加docker支持
parent
40ee88d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
Dockerfile
Bailun.DC.Web/Dockerfile
+23
-0
docker-compose.override.yml
docker-compose.override.yml
+8
-0
docker-compose.yml
docker-compose.yml
+7
-0
No files found.
Bailun.DC.Web/Dockerfile
0 → 100644
View file @
0921f1e0
FROM
microsoft/dotnet:2.1-aspnetcore-runtime AS base
WORKDIR
/app
EXPOSE
80
FROM
microsoft/dotnet:2.1-sdk AS build
WORKDIR
/src
COPY
Bailun.DC.Web/Bailun.DC.Web.csproj Bailun.DC.Web/
COPY
Bailun.DC.Services/Bailun.DC.Services.csproj Bailun.DC.Services/
COPY
Bailun.DC.Common/Bailun.DC.Common.csproj Bailun.DC.Common/
COPY
Bailun.DC.DB/Bailun.DC.DB.csproj Bailun.DC.DB/
COPY
Bailun.DC.Models/Bailun.DC.Models.csproj Bailun.DC.Models/
RUN
dotnet restore Bailun.DC.Web/Bailun.DC.Web.csproj
COPY
. .
WORKDIR
/src/Bailun.DC.Web
RUN
dotnet build Bailun.DC.Web.csproj
-c
Release
-o
/app
FROM
build AS publish
RUN
dotnet publish Bailun.DC.Web.csproj
-c
Release
-o
/app
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app .
ENTRYPOINT
["dotnet", "Bailun.DC.Web.dll"]
docker-compose.override.yml
View file @
0921f1e0
version
:
'
3.4'
services
:
bailun.dc.web
:
environment
:
-
ASPNETCORE_ENVIRONMENT=Development
ports
:
-
"
80"
docker-compose.yml
View file @
0921f1e0
...
...
@@ -34,3 +34,10 @@ services:
context
:
.
dockerfile
:
Bailun.DC.SkuDataWareHouse/Dockerfile
bailun.dc.web
:
image
:
${DOCKER_REGISTRY}bailundcweb
build
:
context
:
.
dockerfile
:
Bailun.DC.Web/Dockerfile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment