-
Notifications
You must be signed in to change notification settings - Fork 522
Expand file tree
/
Copy pathDockerfile-webrtccmdline
More file actions
25 lines (23 loc) · 1009 Bytes
/
Dockerfile-webrtccmdline
File metadata and controls
25 lines (23 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# docker build -t webrtccmdline -f Dockerfile-webrtccmdline .
# docker login
# Either:
# docker tag webrtccmdline:latest docker.io/azaclauson/webrtccmdline:latest
# docker push azaclauson/webrtccmdline:latest
# or:
# az acr login --name sipsorcerycr
# docker tag webrtccmdline:latest sipsorcerycr.azurecr.io/webrtccmdline:latest
# docker push sipsorcerycr.azurecr.io/webrtccmdline:latest
# To run a local container:
# docker run -it --rm -p 8081:8081 -p 60042:60042/udp webrtccmdline --ws --stun stun:stun.l.google.com:19302
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
WORKDIR /src/examples/webrtccmdline
RUN dotnet publish "webrtccmdline.csproj" -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/runtime:10.0 AS final
WORKDIR /app
EXPOSE 8080-8081
EXPOSE 60042
COPY --from=build /app/publish .
#ENTRYPOINT ["dotnet", "webrtccmdline.dll", "--port", "60042", "--ws", "--stun", "stun:stun.l.google.com:19302"]
ENTRYPOINT ["dotnet", "webrtccmdline.dll"]