mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(docker): Add Dockerfile for ubuntu and helper scripts
This commit is contained in:
parent
7f64558b12
commit
a46c9846db
43
docker/Dockerfile.ubuntu
Normal file
43
docker/Dockerfile.ubuntu
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y --force-yes install \
|
||||||
|
build-essential \
|
||||||
|
cmake \
|
||||||
|
git \
|
||||||
|
libavcodec-dev \
|
||||||
|
libavdevice-dev \
|
||||||
|
libavfilter-dev \
|
||||||
|
libavutil-dev \
|
||||||
|
libexif-dev \
|
||||||
|
libgdk-pixbuf2.0-dev \
|
||||||
|
libglib2.0-dev \
|
||||||
|
libgtk2.0-dev \
|
||||||
|
libopenal-dev \
|
||||||
|
libopus-dev \
|
||||||
|
libqrencode-dev \
|
||||||
|
libqt5opengl5-dev \
|
||||||
|
libqt5svg5-dev \
|
||||||
|
libsodium-dev \
|
||||||
|
libsqlcipher-dev \
|
||||||
|
libswresample-dev \
|
||||||
|
libswscale-dev \
|
||||||
|
libvpx-dev \
|
||||||
|
libxss-dev \
|
||||||
|
qrencode \
|
||||||
|
qt5-default \
|
||||||
|
qttools5-dev-tools \
|
||||||
|
qttools5-dev
|
||||||
|
|
||||||
|
RUN git clone https://github.com/toktok/c-toxcore.git /toxcore
|
||||||
|
WORKDIR /toxcore
|
||||||
|
RUN git checkout v0.2.2 && \
|
||||||
|
cmake . && \
|
||||||
|
cmake --build . && \
|
||||||
|
make install && \
|
||||||
|
echo '/usr/local/lib/' >> /etc/ld.so.conf.d/locallib.conf && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
|
COPY . /qtox
|
||||||
|
WORKDIR /qtox
|
||||||
|
RUN cmake . && cmake --build .
|
5
docker/build-ubuntu.sh
Executable file
5
docker/build-ubuntu.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
docker build . -f docker/Dockerfile.ubuntu -t qtox
|
||||||
|
cd -
|
Loading…
Reference in New Issue
Block a user