add: actions & git lfs
8
YaeBlog/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
WORKDIR /app
|
||||
COPY bin/Release/net8.0/publish/ ./
|
||||
COPY source/ ./source/
|
||||
COPY appsettings.json .
|
||||
|
||||
ENTRYPOINT ["dotnet", "YaeBlog.dll"]
|
12
YaeBlog/docker-compose.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
blog:
|
||||
image: registry.cn-beijing.aliyuncs.com/jackfiled/blog:latest
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.blog.rule=Host(`rrricardo.top`) || Host(`www.rrricardo.top`)"
|
||||
- "traefik.http.services.blog.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.blog.tls=true"
|
||||
- "traefik.http.routers.blog.tls.certresolver=myresolver"
|
Before Width: | Height: | Size: 440 KiB After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 129 B |