Change port
This commit is contained in:
parent
0276a77b32
commit
a359344395
@ -4,9 +4,10 @@ COPY . .
|
|||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
RUN dotnet publish --property:OutputPath=/app
|
RUN dotnet publish --property:OutputPath=/app
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
|
||||||
EXPOSE 5000
|
EXPOSE 8080
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app .
|
COPY --from=build /app .
|
||||||
ENV ASPNETCORE_ENVIRONMENT Production
|
USER $APP_UID
|
||||||
ENTRYPOINT ["./RhSolutions.Api", "--urls=http://0.0.0.0:5000"]
|
|
||||||
|
ENTRYPOINT ["./RhSolutions.Api"]
|
@ -4,7 +4,7 @@
|
|||||||
"anonymousAuthentication": true,
|
"anonymousAuthentication": true,
|
||||||
"launchBrowser": false,
|
"launchBrowser": false,
|
||||||
"iisExpress": {
|
"iisExpress": {
|
||||||
"applicationUrl": "http://localhost:5000",
|
"applicationUrl": "http://localhost:8080",
|
||||||
"sslPort": 0
|
"sslPort": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": false,
|
"launchBrowser": false,
|
||||||
"applicationUrl": "http://localhost:5000",
|
"applicationUrl": "http://localhost:8080",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: app
|
container_name: app
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 8080:8080
|
||||||
environment:
|
environment:
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
- DB_PORT=5432
|
- DB_PORT=5432
|
||||||
|
Loading…
Reference in New Issue
Block a user