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
ca17fc76
Commit
ca17fc76
authored
Jan 02, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加dockerfile文件
parent
bf52845c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
Dockerfile
Bailun.DC.DailyInventorySummary/Dockerfile
+23
-0
No files found.
Bailun.DC.DailyInventorySummary/Dockerfile
0 → 100644
View file @
ca17fc76
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM
mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim AS base
WORKDIR
/app
RUN
/bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
FROM
mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR
/src
COPY
["Bailun.DC.DailyInventorySummary/Bailun.DC.DailyInventorySummary.csproj", "Bailun.DC.DailyInventorySummary/"]
COPY
["Bailun.DC.Common/Bailun.DC.Common.csproj", "Bailun.DC.Common/"]
COPY
["Bailun.DC.Models/Bailun.DC.Models.csproj", "Bailun.DC.Models/"]
RUN
dotnet restore
"Bailun.DC.DailyInventorySummary/Bailun.DC.DailyInventorySummary.csproj"
COPY
. .
WORKDIR
"/src/Bailun.DC.DailyInventorySummary"
RUN
dotnet build
"Bailun.DC.DailyInventorySummary.csproj"
-c
Release
-o
/app/build
FROM
build AS publish
RUN
dotnet publish
"Bailun.DC.DailyInventorySummary.csproj"
-c
Release
-o
/app/publish
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app/publish .
ENTRYPOINT
["dotnet", "Bailun.DC.DailyInventorySummary.dll"]
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