-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
52 lines (44 loc) · 1.13 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
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:jammy
ENV DEBIAN_FRONTEND=noninteractive
ENV UID=1000
ENV GID=1000
ENV NO_UPDATE_NOTIFIER=true
ENV GUIAUTOSTART=true
WORKDIR /tmp
COPY requirements.txt /tmp/
# Copy App
COPY --chown=$UID:$GID [ "/MangaManager", "/app" ]
# Setup Dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# Desktop Environment
mousepad \
xfce4-terminal \
xfce4 \
xubuntu-default-settings \
xubuntu-icon-theme \
unrar\
# Python \
idle-python3.11 \
python3-tk \
python3-pip && \
# Manga Manager Dependencies
python3.11 -m pip install -r requirements.txt && \
# Cleanup
apt-get autoclean && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/* && \
# Try making python3 callable by just running "python" on Ubuntu :) (optional)
ln -s /usr/bin/python3.11 /usr/bin/python || true && \
chmod -R +x /app
# Setup environment & branding/customization
COPY /docker-root /
RUN \
chmod -R +x /config/Desktop && \
chmod -R +x /config/.config/xfce4/panel
WORKDIR /app
EXPOSE 3000
VOLUME /manga
VOLUME /covers