Skip to content

Commit

Permalink
fix docker build steps and ports for dotnet 8.0 (#313)
Browse files Browse the repository at this point in the history
* fix docker build steps and ports for dotnet 8.0

* re-add dotnet clean step

* fix port mapping
  • Loading branch information
Freezor authored Jun 27, 2024
1 parent 07534b3 commit 5a01a38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/docker/Dockerfile-AasxServerBlazor
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:8.0 as base
RUN apt update && apt upgrade --yes
RUN apt install -y curl nano libgdiplus
ENV ASPNETCORE_URLS=http://+:5001
ENV ASPNETCORE_HTTP_PORTS=8080
EXPOSE 5001
COPY --from=build-env /out/AasxServerBlazor/ /AasxServerBlazor/
COPY ./content-for-demo/ /AasxServerBlazor/
Expand Down
3 changes: 2 additions & 1 deletion src/docker/docker-compose-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ services:
image: adminshellio/aasx-server-blazor-for-demo:v3latest
restart: unless-stopped
ports:
- "5001:5001"
- "5001:8080"
volumes:
- ./aasxs:/usr/share/aasxs
environment:
- ASPNETCORE_URLS=http://+:5001
- ASPNETCORE_HTTP_PORTS=8080
command: --start-index 0 --no-security --edit --data-path /usr/share/aasxs --external-blazor http://localhost:5001
4 changes: 3 additions & 1 deletion src/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: '3.8'
services:
aasx-server:
container_name: aasx-server
Expand All @@ -7,9 +8,10 @@ services:
dockerfile: ./src/docker/Dockerfile-AasxServerBlazor
restart: unless-stopped
ports:
- "5001:5001"
- "5001:8080"
volumes:
- ./aasxs:/usr/share/aasxs
environment:
- ASPNETCORE_URLS=http://+:5001
- ASPNETCORE_HTTP_PORTS=8080
command: --start-index 0 --no-security --edit --data-path /usr/share/aasxs --external-blazor http://localhost:5001

0 comments on commit 5a01a38

Please sign in to comment.