mirror of https://github.com/abpframework/eventhub
8 changed files with 36 additions and 85 deletions
@ -1,22 +1,22 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: volosoft-eventhub-web-deployment |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: volosoft-eventhub-web-pod |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: volosoft-eventhub-web-pod |
|||
spec: |
|||
containers: |
|||
- name: volosoft-eventhub-web-container |
|||
image: voloeventhub.azurecr.io/voloeventhub:v1 |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 80 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: volosoft-eventhub-web-deployment |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: volosoft-eventhub-web-pod |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: volosoft-eventhub-web-pod |
|||
spec: |
|||
containers: |
|||
- name: volosoft-eventhub-web-container |
|||
image: voloeventhub.azurecr.io/voloeventhub:v1 |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 80 |
|||
@ -1,11 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-web-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-web-pod |
|||
ports: |
|||
- port: 8080 |
|||
targetPort: 80 |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-web-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-web-pod |
|||
ports: |
|||
- port: 8080 |
|||
targetPort: 80 |
|||
type: ClusterIP |
|||
@ -1,15 +0,0 @@ |
|||
node_modules |
|||
npm-debug.log |
|||
Dockerfile* |
|||
docker-compose* |
|||
.dockerignore |
|||
.git |
|||
.gitignore |
|||
.env |
|||
*/bin |
|||
*/obj |
|||
bin |
|||
obj |
|||
README.md |
|||
LICENSE |
|||
.vscode |
|||
@ -1,15 +0,0 @@ |
|||
node_modules |
|||
npm-debug.log |
|||
Dockerfile* |
|||
docker-compose* |
|||
.dockerignore |
|||
.git |
|||
.gitignore |
|||
.env |
|||
*/bin |
|||
*/obj |
|||
bin |
|||
obj |
|||
README.md |
|||
LICENSE |
|||
.vscode |
|||
@ -1,19 +0,0 @@ |
|||
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