Skip to content

Commit

Permalink
Optimization docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarSotoSanchez committed Mar 25, 2020
1 parent 49e10b2 commit 74001db
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
27 changes: 0 additions & 27 deletions Docker/Dockerfile

This file was deleted.

25 changes: 25 additions & 0 deletions docker/Dockerfile
@@ -0,0 +1,25 @@
FROM nginx:1.17.9

RUN apt-get update && \
apt-get install -y curl wget && \
apt-get clean && \
apt-get autoclean && \
rm -Rf /tmp/* && \
rm -Rf /var/lib/apt/lists/*

# Install openvidu-call
RUN mkdir -p /var/www/openvidu-call && \
wget -L -O /var/www/openvidu-call/openvidu-call.tar.gz \
"https://github.com/OpenVidu/openvidu-call/releases/download/v2.12.0/openvidu-call-2.12.0.tar.gz" && \
tar zxf /var/www/openvidu-call/openvidu-call.tar.gz -C /var/www/openvidu-call && \
chown -R www-data:www-data /var/www/openvidu-call && \
rm /var/www/openvidu-call/openvidu-call.tar.gz

# Nginx conf
COPY ./openvidu-call.conf /etc/nginx/conf.d/default.conf

# Entrypoint
COPY ./entrypoint.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh

CMD /usr/local/bin/entrypoint.sh
File renamed without changes.
File renamed without changes.

0 comments on commit 74001db

Please sign in to comment.