Skip to content

Commit aac9a7e

Browse files
authored
Add dockerfile
1 parent 69aaf52 commit aac9a7e

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build
22

33
on:
44
push:
5-
branches: [ qt6_porting ]
5+
branches: [ master ]
66

77
jobs:
88
build:

.github/workflows/build_docker_dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Docker dev build
22

33
on:
44
push:
5-
branches: [ qt6_porting ]
5+
branches: [ master ]
66

77
env:
88
# Use docker.io for Docker Hub if empty

docker/Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM debian:bookworm as builder
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
ENV HOME /opt
6+
RUN mkdir -p $HOME /build /opt
7+
8+
#required packages
9+
RUN apt-get update -qq && \
10+
apt-get install -y build-essential wget git curl qt6-base-dev \
11+
qt6-5compat-dev qt6-declarative-dev qt6-svg-dev qt6-virtualkeyboard-dev \
12+
qt6-webchannel-dev qt6-websockets-dev qt6-webview-dev qt6-shadertools-dev \
13+
libxext-dev xorg-dev qt6-l10n-tools
14+
15+
RUN git clone https://github.com/calaos/calaos_mobile.git
16+
17+
RUN cd calaos_mobile && mkdir -p build && cd build && \
18+
qmake6 ../desktop.pro && \
19+
make -j$(nproc) PREFIX=/opt && \
20+
make install
21+
22+
# Clean up APT when done.
23+
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build/*
24+
25+
FROM debian:bookworm-slim as runner
26+
27+
RUN apt-get update -qq && \
28+
apt-get install -y xserver-xorg xkb-data xinit xfonts-base xfonts-scalable xfonts-75dpi xfonts-100dpi libxext6 \
29+
x11-xkb-utils x11-xserver-utils xauth \
30+
libqt6core6 libqt6gui6 \
31+
libqt6network6 libqt6qml6 \
32+
libqt6quick6 \
33+
qml6-module-qtquick-virtualkeyboard
34+
35+
COPY --from=builder /opt /opt

0 commit comments

Comments
 (0)