-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 1.26 KB
/
Dockerfile
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
# Copyright (C) 2021 Christian Berger
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Part to build cluon-livefeed.
FROM alpine:3.15 as builder
MAINTAINER Christian Berger "[email protected]"
RUN apk update && \
apk --no-cache add \
g++ \
linux-headers
ADD . /opt/sources
WORKDIR /opt/sources
RUN ln -sf cluon-complete-v0.0.140.hpp cluon-complete.cpp && \
g++ -std=c++14 -Wall -D HAVE_CLUON_LIVEFEED -pthread -s -static -static-libgcc -static-libstdc++ -o /tmp/cluon-livefeed cluon-complete.cpp
# Part to deploy cluon-livefeed.
FROM scratch
MAINTAINER Christian Berger "[email protected]"
COPY --from=builder /tmp/cluon-livefeed /
ENTRYPOINT ["/cluon-livefeed"]