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 \ ...@@ -10,8 +10,6 @@ RUN apk add --no-cache \
g++ \ g++ \
gcc \ gcc \
git \ git \
icu-dev \
icu-libs \
libressl \ libressl \
libressl-dev \ libressl-dev \
openldap-dev \ openldap-dev \
...@@ -19,7 +17,6 @@ RUN apk add --no-cache \ ...@@ -19,7 +17,6 @@ RUN apk add --no-cache \
paxmark \ paxmark \
boost-dev \ boost-dev \
qt5-qtbase-dev \ qt5-qtbase-dev \
qt5-qtscript-dev \
qt5-qtbase-postgresql \ qt5-qtbase-postgresql \
qt5-qtbase-sqlite qt5-qtbase-sqlite
...@@ -27,6 +24,10 @@ ARG QUASSEL_VERSION="" ...@@ -27,6 +24,10 @@ ARG QUASSEL_VERSION=""
ARG QUASSEL_BRANCH="master" ARG QUASSEL_BRANCH="master"
ARG QUASSEL_REPO="https://github.com/quassel/quassel" 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 # setup repo
RUN mkdir /quassel && \ RUN mkdir /quassel && \
git clone -b "$QUASSEL_BRANCH" --single-branch "$QUASSEL_REPO" /quassel/src && \ git clone -b "$QUASSEL_BRANCH" --single-branch "$QUASSEL_REPO" /quassel/src && \
...@@ -65,15 +66,17 @@ FROM $BASE ...@@ -65,15 +66,17 @@ FROM $BASE
# install runtime dependencies # install runtime dependencies
RUN apk add --no-cache \ RUN apk add --no-cache \
bash \ bash \
icu-libs \ boost \
libressl \ libressl \
libldap \ libldap \
boost \
qt5-qtbase \ qt5-qtbase \
qt5-qtscript \
qt5-qtbase-postgresql \ qt5-qtbase-postgresql \
qt5-qtbase-sqlite qt5-qtbase-sqlite
RUN if [ "$QUASSEL_BRANCH" = "0.13" ]; then \
apk add --no-cache qt5-qtscript; \
fi
# copy binaries # copy binaries
COPY --from=builder /quassel/install/bin /usr/bin/ COPY --from=builder /quassel/install/bin /usr/bin/
COPY --from=builder /quassel/install/lib* /usr/lib/ COPY --from=builder /quassel/install/lib* /usr/lib/
......
#!/bin/sh #!/bin/sh
make QUASSEL_BRANCH=0.13 QUASSEL_VERSION=0.13.1 make \
make QUASSEL_BRANCH=master QUASSEL_REPO=https://github.com/justjanne/quassel 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