forked from toxext/toxext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 710 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (24 loc) · 710 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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y --no-install-recommends install \
build-essential \
cmake \
git \
pkg-config \
libsodium-dev \
mingw-w64 \
wine-stable \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG TOXCORE_VERSION=0.2.12
ADD https://github.com/TokTok/c-toxcore/archive/refs/tags/v${TOXCORE_VERSION}.tar.gz /toxcore/
WORKDIR /toxcore
RUN tar xzf v${TOXCORE_VERSION}.tar.gz && \
cd c-toxcore-${TOXCORE_VERSION} && \
cmake . -DBOOTSTRAP_DAEMON=OFF && \
cmake --build . && \
make install && \
echo '/usr/local/lib/' >> /etc/ld.so.conf.d/locallib.conf && \
ldconfig
WORKDIR /toxext