Skip to content

Commit

Permalink
Adding dockerfile (#704)
Browse files Browse the repository at this point in the history
* Adding dockerfile

* Update Dockerfile
  • Loading branch information
vicancy authored Mar 11, 2024
1 parent 57ac79e commit 3f61dc1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/awps-tunnel/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Use a base image with Node.js installed
FROM node:20-slim

# Set a placeholder for WebPubSubConnectionString
ENV WebPubSubConnectionString=
ENV Hub=
ENV UpstreamUrl=

# Install the npm tool globally
RUN npm install -g @azure/web-pubsub-tunnel-tool

# Set the working directory inside the container
WORKDIR /app

ENTRYPOINT ["bash", "-c", "awps-tunnel run --hub $hub --webviewHost 0.0.0.0 -u $UpstreamUrl"]

0 comments on commit 3f61dc1

Please sign in to comment.