Skip to content

Commit

Permalink
Merge pull request #2 from ManuelLR/dev
Browse files Browse the repository at this point in the history
Update Flameshot to 0.8.1
  • Loading branch information
ManuelLR authored Sep 27, 2020
2 parents db93124 + f124943 commit 1b9c8c7
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1b9c8c7

Please sign in to comment.