forked from saltyrtc/saltyrtc-server-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 853 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (23 loc) · 853 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
# Dockerfile for the SaltyRTC Server, based on the python:3 image.
#
# WARNING: This Dockerfile does not include TLS termination. Make sure to run
# the container behind a reverse proxy (e.g. Nginx) or make use of
# the -tc and -tk parameters to provide the certificate and key
# directly.
FROM python:3
# Install dependencies
RUN apt-get update -qqy \
&& apt-get install -qqy --no-install-recommends \
libsodium23 \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
# Set working directory
WORKDIR /usr/src/saltyrtc-server
# Copy sources
COPY examples ./examples
COPY saltyrtc ./saltyrtc
COPY tests ./tests
COPY CHANGELOG.rst LICENSE README.rst setup.cfg setup.py ./
# Install the server
RUN pip install --no-cache-dir ".[logging, uvloop]"
# Define server as entrypoint
ENTRYPOINT ["/usr/local/bin/saltyrtc-server"]