privateone commited on
Commit
cf148b3
·
verified ·
1 Parent(s): 30f8168

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -6
Dockerfile CHANGED
@@ -1,4 +1,12 @@
1
- FROM coturn/coturn:alpine
 
 
 
 
 
 
 
 
2
 
3
  USER root
4
 
@@ -9,11 +17,11 @@ RUN apk add --no-cache socat openssl
9
  RUN mkdir -p /etc/turn/certs
10
 
11
  # Generate self-signed cert and private key (valid 365 days)
12
- RUN openssl req -x509 -nodes -newkey rsa:2048 \
13
- -keyout /etc/turn/certs/turn_server_pkey.pem \
14
- -out /etc/turn/certs/turn_server_cert.pem \
15
- -days 365 \
16
- -subj "/C=US/ST=State/L=City/O=Org/OU=Unit/CN=privateone-cotun.hf.space"
17
 
18
  # Set cert directory permissions
19
  RUN chmod 600 /etc/turn/certs/*
 
1
+ FROM coturn/coturn:latest
2
+
3
+ # Install curl to fetch ngrok
4
+ RUN apt-get update && apt-get install -y curl unzip \
5
+ && curl -s https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-stable-linux-amd64.zip -o /tmp/ngrok.zip \
6
+ && unzip /tmp/ngrok.zip -d /usr/local/bin \
7
+ && rm /tmp/ngrok.zip \
8
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
9
+
10
 
11
  USER root
12
 
 
17
  RUN mkdir -p /etc/turn/certs
18
 
19
  # Generate self-signed cert and private key (valid 365 days)
20
+ # RUN openssl req -x509 -nodes -newkey rsa:2048 \
21
+ # -keyout /etc/turn/certs/turn_server_pkey.pem \
22
+ # -out /etc/turn/certs/turn_server_cert.pem \
23
+ # -days 365 \
24
+ # -subj "/C=US/ST=State/L=City/O=Org/OU=Unit/CN=privateone-cotun.hf.space"
25
 
26
  # Set cert directory permissions
27
  RUN chmod 600 /etc/turn/certs/*