Skip to content

Instantly share code, notes, and snippets.

@kafeg
Last active December 10, 2021 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kafeg/6e0922dba7d9bbb4b160b7400aaf37f0 to your computer and use it in GitHub Desktop.
Save kafeg/6e0922dba7d9bbb4b160b7400aaf37f0 to your computer and use it in GitHub Desktop.
Build qt5-base vcpkg package in Alpine Linux environment with all required dependencies
FROM alpine:3
RUN apk add --no-cache libc6-compat cmake ninja git gcc g++ libc-dev \
yasm bash curl make linux-headers curl zip unzip tar \
patch libx11-dev libx11-dev mesa mesa-dev libxi-dev \
libxext-dev autoconf gettext gettext-dev libxkbcommon-dev \
bison pkgconfig gperf python3 glu glu-dev mesa-gl libxcb \
libxcb-dev libxkbcommon libxkbcommon-dev libxkbcommon-x11 \
xcb-util-wm-dev xcb-util-image-dev xcb-util-keysyms-dev \
xcb-util-cursor-dev xcb-util-renderutil-dev xcb-util-xrm-dev \
freeglut freeglut-dev libxmu libxmu-dev libxi nano mc python2 \
automake libtool
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
RUN git clone https://github.com/microsoft/vcpkg.git && \
cd vcpkg && \
git checkout 2021.12.01 && \
chmod 777 bootstrap-vcpkg.sh && \
./bootstrap-vcpkg.sh --disableMetrics && \
echo "set(VCPKG_BUILD_TYPE release)" >> ./triplets/x64-linux.cmake && \
./vcpkg install --triplet x64-linux --clean-after-build qt5-base && \
rm -rf ./installed/x64-linux/debug && \
./vcpkg install --triplet x64-linux --clean-after-build qt5-websockets && \
rm -rf ./.git* && \
rm -rf ./README* && \
rm -rf ./bootstrap* && \
rm -rf ./docs && \
rm -rf ./downloads && \
rm -rf ./buildtrees && \
rm -rf ./packages && \
rm -rf ./toolsrc
RUN cd vcpkg && \
./vcpkg install --triplet x64-linux --clean-after-build jwt-cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment