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
547222fd
Commit
547222fd
authored
Jul 05, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加docker支持
parent
abea2aff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
Bailun.DC.LogicWareHouse.csproj
Bailun.DC.LogicWareHouse/Bailun.DC.LogicWareHouse.csproj
+2
-1
Dockerfile
Bailun.DC.LogicWareHouse/Dockerfile
+22
-0
docker-compose.yml
docker-compose.yml
+7
-0
No files found.
Bailun.DC.LogicWareHouse/Bailun.DC.LogicWareHouse.csproj
View file @
547222fd
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
...
...
Bailun.DC.LogicWareHouse/Dockerfile
0 → 100644
View file @
547222fd
FROM
microsoft/dotnet:2.1-runtime AS base
WORKDIR
/app
RUN
/bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
FROM
microsoft/dotnet:2.1-sdk AS build
WORKDIR
/src
COPY
Bailun.DC.LogicWareHouse/Bailun.DC.LogicWareHouse.csproj Bailun.DC.LogicWareHouse/
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.LogicWareHouse/Bailun.DC.LogicWareHouse.csproj
COPY
. .
WORKDIR
/src/Bailun.DC.LogicWareHouse
RUN
dotnet build Bailun.DC.LogicWareHouse.csproj
-c
Release
-o
/app
FROM
build AS publish
RUN
dotnet publish Bailun.DC.LogicWareHouse.csproj
-c
Release
-o
/app
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app .
ENTRYPOINT
["dotnet", "Bailun.DC.LogicWareHouse.dll"]
docker-compose.yml
View file @
547222fd
...
...
@@ -13,3 +13,10 @@ services:
context
:
.
dockerfile
:
Bailun.DC.SaveWHSalesService/Dockerfile
bailun.dc.logicwarehouse
:
image
:
${DOCKER_REGISTRY}bailundclogicwarehouse
build
:
context
:
.
dockerfile
:
Bailun.DC.LogicWareHouse/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