Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,19 +1,19 @@
|
|
| 1 |
FROM node:latest
|
| 2 |
|
| 3 |
-
RUN mkdir -p --mode=0755 /usr/share/keyrings && curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
|
| 4 |
|
| 5 |
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y lsb-release && apt-get install -y && apt-get install ffmpeg -y
|
| 6 |
|
| 7 |
-
RUN echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflared.list
|
| 8 |
|
| 9 |
-
RUN apt-get update && apt-get install cloudflared -y && apt-get install -y util-linux && apt-get install -y sudo
|
| 10 |
|
| 11 |
RUN rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# RUN cd /run/secrets && ls
|
| 14 |
|
| 15 |
-
RUN --mount=type=secret,id=cloudflared_key,mode=0444,required=true \
|
| 16 |
-
|
| 17 |
|
| 18 |
WORKDIR /app
|
| 19 |
|
|
|
|
| 1 |
FROM node:latest
|
| 2 |
|
| 3 |
+
# RUN mkdir -p --mode=0755 /usr/share/keyrings && curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
|
| 4 |
|
| 5 |
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y lsb-release && apt-get install -y && apt-get install ffmpeg -y
|
| 6 |
|
| 7 |
+
# RUN echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflared.list
|
| 8 |
|
| 9 |
+
# RUN apt-get update && apt-get install cloudflared -y && apt-get install -y util-linux && apt-get install -y sudo
|
| 10 |
|
| 11 |
RUN rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# RUN cd /run/secrets && ls
|
| 14 |
|
| 15 |
+
# RUN --mount=type=secret,id=cloudflared_key,mode=0444,required=true \
|
| 16 |
+
# cloudflared service install $(cat /run/secrets/cloudflared_key)
|
| 17 |
|
| 18 |
WORKDIR /app
|
| 19 |
|