Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit a4dab57

Browse files
committed
add env
Signed-off-by: Stephanie <yangcao@redhat.com>
1 parent b4ed1fd commit a4dab57

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

devfile.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ metadata:
1010
- dotnet
1111
attributes:
1212
alpha.dockerimage-port: 8081
13+
# parent:
14+
# id: dotnet60
15+
# registryUrl: "https://registry.devfile.io"
1316
components:
1417
- name: outerloop-build
1518
image:

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN dotnet publish -c Release
66

77
FROM registry.access.redhat.com/ubi8/dotnet-60:6.0
88
EXPOSE 8081
9+
ENV ASPNETCORE_URLS=http://*:8081
910
COPY --from=builder /opt/app-root/src/bin /opt/app-root/src/bin
1011
WORKDIR /opt/app-root/src/bin/Release/net6.0/publish
11-
CMD ["dotnet", "app.dll", "--urls=http://localhost:8081/"]
12+
CMD ["dotnet", "app.dll"]

0 commit comments

Comments
 (0)