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