-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-vr
More file actions
36 lines (27 loc) · 970 Bytes
/
Dockerfile-vr
File metadata and controls
36 lines (27 loc) · 970 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
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& add-apt-repository universe \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nginx libnginx-mod-rtmp ffmpeg openssl \
&& rm -rf /var/lib/apt/lists/*
# Diretório para HLS
RUN mkdir -p /var/www/html/hls_native
# Diretório para certificados
RUN mkdir -p /etc/nginx/certs
# Certificado autoassinado
RUN openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
-keyout /etc/nginx/certs/selfsigned.key \
-out /etc/nginx/certs/selfsigned.crt \
-subj "/C=BR/ST=RN/L=Natal/O=VRLab/OU=Streaming/CN=localhost"
COPY ao-vivo.html /var/www/html/live.html
COPY vr.html /var/www/html/index.html
COPY nginx-vr.conf /etc/nginx/nginx.conf
COPY video.mp4 /opt/video.mp4
COPY runVR.sh /opt/run.sh
RUN chmod +x /opt/run.sh
EXPOSE 80 443 1935
CMD ["/opt/run.sh"]