Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OTWebSocketHub
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李福茂
OTWebSocketHub
Commits
1e289a96
Commit
1e289a96
authored
May 24, 2021
by
Maodashu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加Dockerfile
parent
8a5b5d45
Pipeline
#203
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
.dockerignore
OTWebSocket.API/.dockerignore
+25
-0
Dockerfile
OTWebSocket.API/Dockerfile
+22
-0
No files found.
OTWebSocket.API/.dockerignore
0 → 100644
View file @
1e289a96
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
\ No newline at end of file
OTWebSocket.API/Dockerfile
0 → 100644
View file @
1e289a96
#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/aspnet:3.1-buster-slim AS base
WORKDIR
/app
EXPOSE
80
EXPOSE
443
FROM
mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR
/src
COPY
["OTWebSocket.API.csproj", "OTWebSocket.API/"]
RUN
dotnet restore
"OTWebSocket.API/OTWebSocket.API.csproj"
-s
"http://nuget.matrixone.io:5555/v3/index.json"
COPY
. .
WORKDIR
"/src/OTWebSocket.API"
RUN
dotnet build
"OTWebSocket.API.csproj"
-c
Release
-o
/app/build
--source
"http://nuget.matrixone.io:5555/v3/index.json"
FROM
build AS publish
RUN
dotnet publish
"OTWebSocket.API.csproj"
-c
Release
-o
/app/publish
--no-restore
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app/publish .
ENTRYPOINT
["dotnet", "OTWebSocket.API.dll"]
\ No newline at end of file
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