-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
64 lines (53 loc) · 1.64 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# buildstage
FROM ghcr.io/linuxserver/baseimage-debian:bookworm as buildstage
RUN \
echo "**** install build deps ****" && \
apt-get update && \
apt-get install -y \
build-essential \
libgtk-3-dev \
libssl-dev \
openssl \
pkg-config && \
echo "**** install rust ****" && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
sh rustup.sh -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN \
echo "**** build binary ****" && \
cargo install series-troxide
# runtime
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
# title
ENV TITLE=Series-Troxie
COPY --from=buildstage /root/.cargo/bin/series-troxide /usr/bin/series-troxide
RUN \
echo "**** install deps ****" && \
chmod +x /usr/bin/series-troxide && \
apt-get update && \
apt-get install -y --no-install-recommends \
libgtk-3-0 \
mesa-vulkan-drivers && \
echo "**** openbox tweaks ****" && \
sed -i \
's|</applications>| <application title="Series Troxide" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' \
/etc/xdg/openbox/rc.xml && \
curl -o \
/usr/share/icons/hicolor/scalable/apps/series-troxide.svg -L \
"https://raw.githubusercontent.com/MaarifaMaarifa/series-troxide/main/assets/logos/series-troxide.svg" && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config