Compare commits
6 Commits
3a8ddce394
...
9f6c9632be
Author | SHA1 | Date |
---|---|---|
Tudor Stanciu | 9f6c9632be | |
Tudor Stanciu | 1c066cc0ae | |
Tudor Stanciu | 2b0e90297d | |
Tudor Stanciu | 91228fb87d | |
Tudor Stanciu | 460c7b0c23 | |
Tudor Stanciu | d2f61d568c |
|
@ -0,0 +1,25 @@
|
||||||
|
**/.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
|
|
@ -363,3 +363,5 @@ MigrationBackup/
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
|
|
||||||
*/**/appsettings.Development.json
|
*/**/appsettings.Development.json
|
||||||
|
build.sh
|
||||||
|
buildx.sh
|
|
@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution
|
||||||
.gitattributes = .gitattributes
|
.gitattributes = .gitattributes
|
||||||
.gitignore = .gitignore
|
.gitignore = .gitignore
|
||||||
dependencies.props = dependencies.props
|
dependencies.props = dependencies.props
|
||||||
directory.build.props = directory.build.props
|
Directory.Build.props = Directory.Build.props
|
||||||
LICENSE.txt = LICENSE.txt
|
LICENSE.txt = LICENSE.txt
|
||||||
nuget.config = nuget.config
|
nuget.config = nuget.config
|
||||||
README.md = README.md
|
README.md = README.md
|
||||||
|
@ -30,9 +30,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Correo.Abstractions", "src\
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Correo.MailKit", "src\Correo.MailKit\Correo.MailKit.csproj", "{325B77E1-D752-4578-8BF7-793905C38DCD}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Correo.MailKit", "src\Correo.MailKit\Correo.MailKit.csproj", "{325B77E1-D752-4578-8BF7-793905C38DCD}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Correo.SendGrid", "src\Correo.SendGrid\Correo.SendGrid.csproj", "{1457426A-CD47-4201-BE3C-A40B38FCB1FA}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Correo.SendGrid", "src\Correo.SendGrid\Correo.SendGrid.csproj", "{1457426A-CD47-4201-BE3C-A40B38FCB1FA}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Correo.Mailgun", "src\Correo.Mailgun\Correo.Mailgun.csproj", "{78DC392D-B24A-43CA-B632-6124CD2C35B1}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Correo.Mailgun", "src\Correo.Mailgun\Correo.Mailgun.csproj", "{78DC392D-B24A-43CA-B632-6124CD2C35B1}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
<DockerfileContext>..\..</DockerfileContext>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
#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/aspnet:6.0-bullseye-slim AS base
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build
|
||||||
|
WORKDIR /workspace
|
||||||
|
COPY ["dependencies.props", "."]
|
||||||
|
COPY ["Directory.Build.props", "."]
|
||||||
|
COPY ["nuget.config", "."]
|
||||||
|
COPY ["src/Correo/Correo.csproj", "src/Correo/"]
|
||||||
|
COPY ["src/Correo.Application/Correo.Application.csproj", "src/Correo.Application/"]
|
||||||
|
COPY ["src/Correo.Abstractions/Correo.Abstractions.csproj", "src/Correo.Abstractions/"]
|
||||||
|
COPY ["src/Correo.Domain/Correo.Domain.csproj", "src/Correo.Domain/"]
|
||||||
|
COPY ["src/Correo.PublishedLanguage/Correo.PublishedLanguage.csproj", "src/Correo.PublishedLanguage/"]
|
||||||
|
COPY ["src/Correo.Mailgun/Correo.Mailgun.csproj", "src/Correo.Mailgun/"]
|
||||||
|
COPY ["src/Correo.MailKit/Correo.MailKit.csproj", "src/Correo.MailKit/"]
|
||||||
|
COPY ["src/Correo.NetSmtpClient/Correo.NetSmtpClient.csproj", "src/Correo.NetSmtpClient/"]
|
||||||
|
COPY ["src/Correo.SendGrid/Correo.SendGrid.csproj", "src/Correo.SendGrid/"]
|
||||||
|
RUN dotnet restore "src/Correo/Correo.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/workspace/src/Correo"
|
||||||
|
RUN dotnet build "Correo.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "Correo.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
|
||||||
|
ENV AUTHOR="Tudor Stanciu"
|
||||||
|
ENV Urls="http://*:80"
|
||||||
|
ARG APP_VERSION=0.0.0.0
|
||||||
|
ENV APP_VERSION=${APP_VERSION}
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "Correo.dll"]
|
|
@ -18,11 +18,11 @@
|
||||||
"TopicPrefix": "HomeLab.",
|
"TopicPrefix": "HomeLab.",
|
||||||
"Source": "Correo",
|
"Source": "Correo",
|
||||||
"Nats": {
|
"Nats": {
|
||||||
"natsUrl": "nats://<host>:4222",
|
"NatsUrl": "nats://<host>:4222",
|
||||||
"cluster": "<cluster>",
|
"Cluster": "<cluster>",
|
||||||
"clientId": "Correo",
|
"ClientId": "Correo",
|
||||||
"qGroup": "Correo",
|
"QGroup": "Correo",
|
||||||
"durableName": "durable"
|
"DurableName": "durable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"DefaultSender": {
|
"DefaultSender": {
|
||||||
|
|
Loading…
Reference in New Issue