mirror of https://github.com/abpframework/eventhub
10 changed files with 127 additions and 48 deletions
@ -0,0 +1,25 @@ |
|||||
|
**/.classpath |
||||
|
**/.dockerignore |
||||
|
**/.env |
||||
|
**/.git |
||||
|
**/.gitignore |
||||
|
**/.project |
||||
|
**/.settings |
||||
|
**/.toolstarget |
||||
|
**/.vs |
||||
|
**/.vscode |
||||
|
**/*.*proj.user |
||||
|
**/*.dbmdl |
||||
|
**/*.jfm |
||||
|
**/azds.yaml |
||||
|
**/bin |
||||
|
**/charts |
||||
|
**/docker-compose* |
||||
|
**/compose* |
||||
|
**/Dockerfile* |
||||
|
**/node_modules |
||||
|
**/npm-debug.log |
||||
|
**/obj |
||||
|
**/secrets.dev.yaml |
||||
|
**/values.dev.yaml |
||||
|
README.md |
||||
@ -1,16 +0,0 @@ |
|||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-image |
|
||||
|
|
||||
WORKDIR /. |
|
||||
COPY ./*/*.csproj ./ |
|
||||
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done |
|
||||
RUN dotnet restore "EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj" --verbosity detailed |
|
||||
COPY . . |
|
||||
RUN dotnet publish ./EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj -o /publish/ |
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|
||||
WORKDIR /publish |
|
||||
COPY --from=build-image /publish . |
|
||||
ENV ASPNETCORE_URLS="http://0.0.0.0:5002" |
|
||||
ENTRYPOINT ["dotnet", "EventHub.HttpApi.Host.dll"] |
|
||||
|
|
||||
|
|
||||
|
|
||||
@ -1,16 +0,0 @@ |
|||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-image |
|
||||
|
|
||||
WORKDIR /. |
|
||||
COPY ./*/*.csproj ./ |
|
||||
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done |
|
||||
RUN dotnet restore "EventHub.IdentityServer/EventHub.IdentityServer.csproj" --verbosity detailed |
|
||||
COPY . . |
|
||||
RUN dotnet publish ./EventHub.IdentityServer/EventHub.IdentityServer.csproj -o /publish/ |
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|
||||
WORKDIR /publish |
|
||||
COPY --from=build-image /publish . |
|
||||
ENV ASPNETCORE_URLS="http://0.0.0.0:5001" |
|
||||
ENTRYPOINT ["dotnet", "EventHub.IdentityServer.dll"] |
|
||||
|
|
||||
|
|
||||
|
|
||||
@ -1,16 +0,0 @@ |
|||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-image |
|
||||
|
|
||||
WORKDIR /. |
|
||||
COPY ./*/*.csproj ./ |
|
||||
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done |
|
||||
RUN dotnet restore "EventHub.Web/EventHub.Web.csproj" --verbosity detailed |
|
||||
COPY . . |
|
||||
RUN dotnet publish ./EventHub.Web/EventHub.Web.csproj -o /publish/ |
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|
||||
WORKDIR /publish |
|
||||
COPY --from=build-image /publish . |
|
||||
ENV ASPNETCORE_URLS="http://0.0.0.0:80" |
|
||||
ENTRYPOINT ["dotnet", "EventHub.Web.dll"] |
|
||||
|
|
||||
|
|
||||
|
|
||||
@ -0,0 +1,15 @@ |
|||||
|
node_modules |
||||
|
npm-debug.log |
||||
|
Dockerfile* |
||||
|
docker-compose* |
||||
|
.dockerignore |
||||
|
.git |
||||
|
.gitignore |
||||
|
.env |
||||
|
*/bin |
||||
|
*/obj |
||||
|
bin |
||||
|
obj |
||||
|
README.md |
||||
|
LICENSE |
||||
|
.vscode |
||||
@ -0,0 +1,19 @@ |
|||||
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
||||
|
WORKDIR /app |
||||
|
EXPOSE 5002 |
||||
|
|
||||
|
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build |
||||
|
WORKDIR /src |
||||
|
COPY ["src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj", "src/EventHub.HttpApi.Host/"] |
||||
|
RUN dotnet restore "src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj" |
||||
|
COPY . . |
||||
|
WORKDIR "/src/src/EventHub.HttpApi.Host" |
||||
|
RUN dotnet build "EventHub.HttpApi.Host.csproj" -c Release -o /app |
||||
|
|
||||
|
FROM build AS publish |
||||
|
RUN dotnet publish "EventHub.HttpApi.Host.csproj" -c Release -o /app |
||||
|
|
||||
|
FROM base AS final |
||||
|
WORKDIR /app |
||||
|
COPY --from=publish /app . |
||||
|
ENTRYPOINT ["dotnet", "EventHub.HttpApi.Host.dll"] |
||||
@ -0,0 +1,15 @@ |
|||||
|
node_modules |
||||
|
npm-debug.log |
||||
|
Dockerfile* |
||||
|
docker-compose* |
||||
|
.dockerignore |
||||
|
.git |
||||
|
.gitignore |
||||
|
.env |
||||
|
*/bin |
||||
|
*/obj |
||||
|
bin |
||||
|
obj |
||||
|
README.md |
||||
|
LICENSE |
||||
|
.vscode |
||||
@ -0,0 +1,19 @@ |
|||||
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
||||
|
WORKDIR /app |
||||
|
EXPOSE 5001 |
||||
|
|
||||
|
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build |
||||
|
WORKDIR /src |
||||
|
COPY ["src/EventHub.IdentityServer/EventHub.IdentityServer.csproj", "src/EventHub.IdentityServer/"] |
||||
|
RUN dotnet restore "src/EventHub.IdentityServer/EventHub.IdentityServer.csproj" |
||||
|
COPY . . |
||||
|
WORKDIR "/src/src/EventHub.IdentityServer" |
||||
|
RUN dotnet build "EventHub.IdentityServer.csproj" -c Release -o /app |
||||
|
|
||||
|
FROM build AS publish |
||||
|
RUN dotnet publish "EventHub.IdentityServer.csproj" -c Release -o /app |
||||
|
|
||||
|
FROM base AS final |
||||
|
WORKDIR /app |
||||
|
COPY --from=publish /app . |
||||
|
ENTRYPOINT ["dotnet", "EventHub.IdentityServer.dll"] |
||||
@ -0,0 +1,15 @@ |
|||||
|
node_modules |
||||
|
npm-debug.log |
||||
|
Dockerfile* |
||||
|
docker-compose* |
||||
|
.dockerignore |
||||
|
.git |
||||
|
.gitignore |
||||
|
.env |
||||
|
*/bin |
||||
|
*/obj |
||||
|
bin |
||||
|
obj |
||||
|
README.md |
||||
|
LICENSE |
||||
|
.vscode |
||||
@ -0,0 +1,19 @@ |
|||||
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
||||
|
WORKDIR /app |
||||
|
EXPOSE 80 |
||||
|
|
||||
|
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build |
||||
|
WORKDIR /src |
||||
|
COPY ["src/EventHub.Web/EventHub.Web.csproj", "src/EventHub.Web/"] |
||||
|
RUN dotnet restore "src/EventHub.Web/EventHub.Web.csproj" |
||||
|
COPY . . |
||||
|
WORKDIR "/src/src/EventHub.Web" |
||||
|
RUN dotnet build "EventHub.Web.csproj" -c Release -o /app |
||||
|
|
||||
|
FROM build AS publish |
||||
|
RUN dotnet publish "EventHub.Web.csproj" -c Release -o /app |
||||
|
|
||||
|
FROM base AS final |
||||
|
WORKDIR /app |
||||
|
COPY --from=publish /app . |
||||
|
ENTRYPOINT ["dotnet", "EventHub.Web.dll"] |
||||
Loading…
Reference in new issue