Spaces:
Runtime error
Runtime error
ChandimaPrabath
commited on
Update Dockerfile
Browse files- Dockerfile +15 -8
Dockerfile
CHANGED
@@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|
6 |
TZ=Europe/Paris
|
7 |
|
8 |
# Remove any third-party apt sources to avoid issues with expiring keys.
|
9 |
-
# Install basic utilities
|
10 |
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
11 |
apt-get update && apt-get install -y --no-install-recommends \
|
12 |
curl \
|
@@ -26,13 +26,20 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
26 |
build-essential \
|
27 |
software-properties-common \
|
28 |
python3-pip \
|
29 |
-
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
# Add the Jellyfin repository
|
32 |
-
RUN wget -O - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key |
|
33 |
-
echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/ubuntu focal main" |
|
34 |
-
|
35 |
-
|
36 |
|
37 |
# Create a working directory
|
38 |
WORKDIR /tmp/app
|
@@ -66,4 +73,4 @@ EXPOSE 7860
|
|
66 |
|
67 |
# Start Jellyfin and the Flask server
|
68 |
USER user
|
69 |
-
CMD ["sh", "-c", "jellyfin -d /home/user/app/jellyfin --webdir /usr/share/jellyfin/web & cd /tmp/app && python3 app.py"]
|
|
|
6 |
TZ=Europe/Paris
|
7 |
|
8 |
# Remove any third-party apt sources to avoid issues with expiring keys.
|
9 |
+
# Install basic utilities and Cloudflared
|
10 |
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
11 |
apt-get update && apt-get install -y --no-install-recommends \
|
12 |
curl \
|
|
|
26 |
build-essential \
|
27 |
software-properties-common \
|
28 |
python3-pip \
|
29 |
+
&& rm -rf /var/lib/apt/lists/* && \
|
30 |
+
# Add Cloudflare GPG key
|
31 |
+
mkdir -p --mode=0755 /usr/share/keyrings && \
|
32 |
+
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null && \
|
33 |
+
# Add Cloudflare repository
|
34 |
+
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared jammy main' | tee /etc/apt/sources.list.d/cloudflared.list && \
|
35 |
+
# Install Cloudflared
|
36 |
+
apt-get update && apt-get install -y cloudflared
|
37 |
|
38 |
+
# Add the Jellyfin repository and install Jellyfin
|
39 |
+
RUN wget -O - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | apt-key add - && \
|
40 |
+
echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/ubuntu focal main" | tee /etc/apt/sources.list.d/jellyfin.list && \
|
41 |
+
apt-get update && \
|
42 |
+
apt-get install -y jellyfin
|
43 |
|
44 |
# Create a working directory
|
45 |
WORKDIR /tmp/app
|
|
|
73 |
|
74 |
# Start Jellyfin and the Flask server
|
75 |
USER user
|
76 |
+
CMD ["sh", "-c", "jellyfin -d /home/user/app/jellyfin --webdir /usr/share/jellyfin/web & cd /tmp/app && python3 app.py & cloudflared tunnel --url localhost:7860"]
|