-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (31 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
37 lines (31 loc) · 1.08 KB
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
36
37
FROM debian:stretch
MAINTAINER Pål-Erik Martinsen <palmarti@cisco.com>
# XXX: Workaround for https://github.com/docker/docker/issues/6345
RUN ln -s -f /bin/true /usr/bin/chfn
#RUN apt-get update && \
# DEBIAN_FRONTEND=noninteractive \
# apt-get install -y \
# ca-certificates \
# git \
# build-essential \
# cmake\
# libssl-dev \
# zlib1g-dev\
# procps \
# --no-install-recommends
ADD . stunserver
RUN \
buildDeps='build-essential zlib1g-dev git cmake';set -x &&\
apt-get update && apt-get install -y ca.certificates libssl-dev libbsd-dev $buildDeps --no-install-recommends &&\
rm -rf /var/lib/apt/lists/* &&\
#git clone http://github.com/NATTools/stunserver.git &&\
cd stunserver &&\
rm -rf build &&\
./build.sh &&\
make -C build install &&\
#cd .. && rm -rf stunserver &&\
#apt-get purge -y --auto-remove $buildDeps
apt-get purge -y --auto-remove $buildDeps
EXPOSE 3478 3478/udp
CMD ["/bin/sh", "stunserver/build/dist/bin/stunserver"]
ENTRYPOINT ["stunserver/build/dist/bin/stunserver"]