-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (22 loc) · 900 Bytes
/
Dockerfile
File metadata and controls
35 lines (22 loc) · 900 Bytes
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
31
32
33
34
35
ARG PREBUILT_DIR=build/WebAssembly_Qt_6_10_1_single_threaded-Release
FROM nginx:alpine
ARG PREBUILT_DIR
WORKDIR /usr/share/nginx/html
RUN apk add --no-cache gettext
ENV CONTROLLER_PROXY=controller:8080
# nginx-Konfiguration (templatisiertes Proxy-Ziel)
COPY nginx.conf.template /etc/nginx/conf.d/default.conf.template
# Qt/WASM-Assets aus dem Build-Verzeichnis
COPY ${PREBUILT_DIR}/ ./
# 1) Translations aus dem QML-Ordner mit einpacken
# (Pfad ggf. anpassen, wenn dein Ordner anders heißt)
COPY qml/translation ./translation
# 2) Qt-Logo überschreiben
# Empfehlung: ein SVG im Repo haben, z.B. media/grin-node/logo.svg
COPY media/grin-node/logo.svg ./qtlogo.svg
# 3) Fonts mit einpacken
COPY fonts ./fonts
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]