-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 816 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
# Using ubuntu as a base image
FROM ubuntu:18.04
# Getting rid of debconf messages
ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_SCRIPT_HOME=/usr/local/bin
ARG BUILD_REALM=realm_you_want
ARG BUILD_PUBLICIP=8.8.8.8
ARG BUILD_USERNAME=user
ARG BUILD_PASSWORD=password
ENV SCRIPT_HOME=$BUILD_SCRIPT_HOME
ENV REALM=$BUILD_REALM
ENV PUBLICIP=$BUILD_PUBLICIP
ENV USERNAME=$BUILD_USERNANE
ENV PASSWORD=$BUILD_PASSWORD
# Install dependencies
RUN set -x && \
apt-get update -y && \
apt-get install -y apt-utils && \
apt-get install -y dumb-init git coturn
# Entrypoint script
COPY docker-entrypoint.sh $SCRIPT_HOME/docker-entrypoint.sh
RUN chmod +x $SCRIPT_HOME/docker-entrypoint.sh
EXPOSE 3478 3478/udp
VOLUME ["/var/lib/coturn"]
ENTRYPOINT ["/usr/bin/dumb-init", "--", "docker-entrypoint.sh"]
CMD ["up"]