-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (18 loc) · 808 Bytes
/
Dockerfile
File metadata and controls
30 lines (18 loc) · 808 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
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386
RUN apt-get update && apt-get -y install build-essential gcc-multilib git cmake libssl-dev libssl-dev:i386 && apt-get clean && apt-get autoclean
ADD . /cwebsockify
WORKDIR /cwebsockify
# ======= build cwebsockify ========
RUN cmake -DCMAKE_BUILD_TYPE=Release .
RUN make
# ======= build debian package ( TODO ) =======
# RUN chmod -R 775 ./packaging
# RUN cp ./bin/websockify ./packaging/usr/local/bin
# RUN dpkg-deb -b ./packaging websockify.deb
# =======howto build and package =======
# docker build -t websockify .
# docker run --rm websockify cat /cwebsockify/bin/websockify > websockify
## debian packaging (disabled for now)
# docker run --rm websockify cat /cwebsockify/websockify.deb > websockify.deb