/
Dockerfile
34 lines (27 loc) · 1.66 KB
/
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
31
32
33
FROM jlesage/baseimage-gui:ubuntu-20.04
ENV APP_NAME="P3R OpenRGB"
ENV KEEP_APP_RUNNING=1
ENV ENABLE_CJK_FONT=1
ENV LANG=en_US.UTF-8
WORKDIR /usr/src/openrgb
COPY openrgb .
COPY startapp.sh /startapp.sh
COPY default.orp /config/xdg/config/OpenRGB/default.orp
RUN chmod +x /usr/src/openrgb/OpenRGB
RUN apt-get update \
&& apt-get -y install \
libusb-1.0-0 \
libqt5widgets5 \
libqt5core5a \
libqt5gui5 \
usbutils \
i2c-tools \
locales \
libhidapi-dev \
libmbedx509-0 \
libmbedtls-dev \
&& locale-gen en_US.UTF-8
RUN \
APP_ICON_URL=https://raw.githubusercontent.com/P3R-CO/unraid/master/OpenRGB-P3R-256px.png && \
APP_ICON_DESC='{"masterPicture":"/opt/novnc/images/icons/master_icon.png","iconsPath":"/images/icons/","design":{"ios":{"pictureAspect":"noChange","assets":{"ios6AndPriorIcons":false,"ios7AndLaterIcons":false,"precomposedIcons":false,"declareOnlyDefaultIcon":true}},"desktopBrowser":{"design":"raw"},"windows":{"pictureAspect":"noChange","backgroundColor":"#da532c","onConflict":"override","assets":{"windows80Ie10Tile":false,"windows10Ie11EdgeTiles":{"small":false,"medium":true,"big":false,"rectangle":false}}},"androidChrome":{"pictureAspect":"noChange","themeColor":"#ffffff","manifest":{"display":"standalone","orientation":"notSet","onConflict":"override","declared":true},"assets":{"legacyIcon":false,"lowResolutionIcons":false}},"safariPinnedTab":{"pictureAspect":"silhouette","themeColor":"#5bbad5"}},"settings":{"scalingAlgorithm":"Mitchell","errorOnImageTooSmall":false,"readmeFile":false,"htmlCodeFile":false,"usePathAsIs":false},"versioning":{"paramName":"v","paramValue":"ICON_VERSION"}}' && \
install_app_icon.sh "$APP_ICON_URL" "$APP_ICON_DESC"