forked from chris2511/xca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 678 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG REGISTRY_PREFIX=''
ARG CODENAME=jammy
FROM ${REGISTRY_PREFIX}ubuntu:${CODENAME} as builder
RUN set -x \
&& apt update \
&& apt upgrade -y \
&& apt install --yes --no-install-recommends \
build-essential libssl-dev pkg-config qtbase5-dev \
qttools5-dev-tools qttools5-dev libqt5sql5 libqt5help5 \
python3-sphinxcontrib.qthelp git cmake
ARG PARALLELMFLAGS=-j6
ARG BUILD_DIR=/tmp/build
COPY . ${BUILD_DIR}
RUN set -x \
&& cd ${BUILD_DIR} \
&& cmake -B BUILD \
&& cmake --build BUILD ${PARALLELMFLAGS} \
&& cmake --install BUILD \
&& cd \
&& rm -rf ${BUILD_DIR}
ARG USER_ID=1000
RUN set -x \
&& useradd -u "$USER_ID" -ms /bin/bash user
ENTRYPOINT ["xca"]