mirror of https://github.com/abpframework/eventhub
2 changed files with 0 additions and 50 deletions
@ -1,24 +0,0 @@ |
|||
**/.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 |
|||
README.md |
|||
@ -1,26 +0,0 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 5000 |
|||
|
|||
ENV ASPNETCORE_URLS=http://+:5000 |
|||
|
|||
# Creates a non-root user with an explicit UID and adds permission to access the /app folder |
|||
# For more info, please refer to https://aka.ms/vscode-docker-dotnet-configure-containers |
|||
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app |
|||
USER appuser |
|||
|
|||
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/build |
|||
|
|||
FROM build AS publish |
|||
RUN dotnet publish "EventHub.Web.csproj" -c Release -o /app/publish |
|||
|
|||
FROM base AS final |
|||
WORKDIR /app |
|||
COPY --from=publish /app/publish . |
|||
ENTRYPOINT ["dotnet", "EventHub.Web.dll"] |
|||
Loading…
Reference in new issue