-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ManuelLR/dev
Update Flameshot to 0.8.1
- Loading branch information
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,27 +4,24 @@ FROM debian:stable-slim | |
|
||
LABEL maintainer="@ManuelLR <[email protected]>" | ||
|
||
ENV GIT_URL https://github.com/lupoDharkael/flameshot.git | ||
ENV GIT_BRANCH v0.6.0 | ||
ENV GIT_URL https://github.com/flameshot-org/flameshot.git | ||
ENV GIT_BRANCH v0.8.1 | ||
|
||
ENV BUILD_PACKAGES git g++ build-essential qt5-qmake qt5-default qttools5-dev-tools libqt5svg5-dev | ||
ENV RUNTIME_PACKAGES libqt5dbus5 libqt5network5 libqt5core5a libqt5widgets5 libqt5gui5 openssl ca-certificates | ||
ENV BUILD_PACKAGES git g++ cmake build-essential qt5-default qttools5-dev-tools libqt5svg5-dev qttools5-dev ca-certificates | ||
ENV RUNTIME_PACKAGES libqt5dbus5 libqt5network5 libqt5core5a libqt5widgets5 libqt5gui5 libqt5svg5 openssl ca-certificates | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /usr/src/ | ||
|
||
RUN set -x \ | ||
&& apt update \ | ||
&& apt install -y $BUILD_PACKAGES \ | ||
&& cd /usr/src/ \ | ||
&& apt install -y --no-install-recommends $BUILD_PACKAGES \ | ||
&& cd /tmp/ \ | ||
&& git clone $GIT_URL flameshot --branch $GIT_BRANCH \ | ||
&& cd flameshot \ | ||
&& qmake && make -j 3 && make install && make clean \ | ||
&& cmake . && make -j 3 && make install && make clean \ | ||
&& rm -rf /tmp/flameshot \ | ||
&& apt-get remove --purge --auto-remove -y $BUILD_PACKAGES \ | ||
&& apt-get install -y $RUNTIME_PACKAGES \ | ||
&& apt-get install -y --no-install-recommends $RUNTIME_PACKAGES \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN ln -s /usr/src/flameshot /usr/bin/flameshot | ||
|
||
CMD flameshot |