mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
25 lines
475 B
Plaintext
25 lines
475 B
Plaintext
|
FROM chatterino-ubuntu-22.04-base
|
||
|
|
||
|
ADD . /src
|
||
|
|
||
|
RUN mkdir /src/build
|
||
|
|
||
|
# cmake
|
||
|
RUN cd /src/build && \
|
||
|
CXXFLAGS=-fno-sized-deallocation cmake \
|
||
|
-DCMAKE_PREFIX_PATH=/opt/qt515/lib/cmake \
|
||
|
-DUSE_PRECOMPILED_HEADERS=OFF \
|
||
|
-DBUILD_WITH_QTKEYCHAIN=OFF \
|
||
|
-DBUILD_TESTS=ON \
|
||
|
..
|
||
|
|
||
|
# build
|
||
|
RUN cd /src/build && \
|
||
|
make -j8
|
||
|
|
||
|
ENV QT_QPA_PLATFORM=minimal
|
||
|
ENV QT_PLUGIN_PATH=/opt/qt515/plugins
|
||
|
|
||
|
# test
|
||
|
CMD /src/build/bin/chatterino-test
|