Skip to content
Snippets Groups Projects
Verified Commit 9a8c63e8 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

reduce size of container if possible

parent b4831379
Branches
No related tags found
No related merge requests found
......@@ -10,8 +10,6 @@ RUN apk add --no-cache \
g++ \
gcc \
git \
icu-dev \
icu-libs \
libressl \
libressl-dev \
openldap-dev \
......@@ -19,7 +17,6 @@ RUN apk add --no-cache \
paxmark \
boost-dev \
qt5-qtbase-dev \
qt5-qtscript-dev \
qt5-qtbase-postgresql \
qt5-qtbase-sqlite
......@@ -27,6 +24,10 @@ ARG QUASSEL_VERSION=""
ARG QUASSEL_BRANCH="master"
ARG QUASSEL_REPO="https://github.com/quassel/quassel"
RUN if [ "$QUASSEL_BRANCH" = "0.13" ]; then \
apk add --no-cache qt5-qtscript-dev; \
fi
# setup repo
RUN mkdir /quassel && \
git clone -b "$QUASSEL_BRANCH" --single-branch "$QUASSEL_REPO" /quassel/src && \
......@@ -65,15 +66,17 @@ FROM $BASE
# install runtime dependencies
RUN apk add --no-cache \
bash \
icu-libs \
boost \
libressl \
libldap \
boost \
qt5-qtbase \
qt5-qtscript \
qt5-qtbase-postgresql \
qt5-qtbase-sqlite
RUN if [ "$QUASSEL_BRANCH" = "0.13" ]; then \
apk add --no-cache qt5-qtscript; \
fi
# copy binaries
COPY --from=builder /quassel/install/bin /usr/bin/
COPY --from=builder /quassel/install/lib* /usr/lib/
......
#!/bin/sh
make QUASSEL_BRANCH=0.13 QUASSEL_VERSION=0.13.1
make QUASSEL_BRANCH=master QUASSEL_REPO=https://github.com/justjanne/quassel
make \
QUASSEL_BRANCH=0.13 \
QUASSEL_VERSION=0.13.1
make \
QUASSEL_BRANCH=master \
QUASSEL_REPO=https://github.com/justjanne/quassel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment