Skip to content

Commit a729418

Browse files
committed
Add Dockerfile
1 parent ad82160 commit a729418

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Dockerfile for the SaltyRTC Server, based on the python:3 image.
2+
#
3+
# WARNING: This Dockerfile does not include TLS termination. Make sure to run
4+
# the container behind a reverse proxy (e.g. Nginx) or make use of
5+
# the -tc and -tk parameters to provide the certificate and key
6+
# directly.
7+
FROM python:3
8+
9+
# Install dependencies
10+
RUN apt-get update -qqy \
11+
&& apt-get install -qqy --no-install-recommends \
12+
libsodium18 \
13+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
14+
15+
# Set working directory
16+
WORKDIR /usr/src/saltyrtc-server
17+
18+
# Copy sources
19+
COPY examples ./examples
20+
COPY saltyrtc ./saltyrtc
21+
COPY tests ./tests
22+
COPY CHANGELOG.rst LICENSE README.rst setup.cfg setup.py ./
23+
24+
# Install the server
25+
RUN pip install --no-cache-dir ".[logging, uvloop]"
26+
27+
# Define server as entrypoint
28+
ENTRYPOINT ["/usr/local/bin/saltyrtc-server"]

0 commit comments

Comments
 (0)