File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,15 @@ COPY octobot/config /octobot/octobot/config
3838COPY docker/* /octobot/
3939
4040# 1. Install requirements
41- # 2. Add cloudflare gpg key and add cloudflare repo in apt repositories (from https://pkg.cloudflare.com/index.html)
42- # 3. Install required packages
43- # 4. Finish env setup
41+ # 2. Install required packages
42+ # 3. Finish env setup
4443SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
4544# Update to debian archive from https://gist.github.com/ishad0w/6ce1eb569c734880200c47923577426a
4645RUN echo "deb http://archive.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list \
4746 && echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list \
4847 && echo "deb http://archive.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list \
4948 && apt-get update \
50- && apt-get install -y --no-install-recommends curl \
51- && mkdir -p /usr/share/keyrings \
52- && chmod 0755 /usr/share/keyrings \
53- && curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null \
54- && echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared buster main' | tee /etc/apt/sources.list.d/cloudflared.list \
55- && apt-get update \
56- && apt-get install -y --no-install-recommends curl cloudflared libxslt-dev libxcb-xinput0 libjpeg62-turbo-dev zlib1g-dev libblas-dev liblapack-dev libatlas-base-dev libopenjp2-7 libtiff-dev \
49+ && apt-get install -y --no-install-recommends curl libxslt-dev libxcb-xinput0 libjpeg62-turbo-dev zlib1g-dev libblas-dev liblapack-dev libatlas-base-dev libopenjp2-7 libtiff-dev \
5750 && rm -rf /var/lib/apt/lists/* \
5851 && ln -s /opt/venv/bin/OctoBot OctoBot # Make sure we use the virtualenv \
5952 && chmod +x docker-entrypoint.sh
Original file line number Diff line number Diff line change 1212# start cloudflared if token is provided
1313# https://developers.cloudflare.com/cloudflare-one/tutorials/cli/
1414if [[ -n " $CLOUDFLARE_TOKEN " ]]; then
15+ # Install cloudflared if not already installed
16+ # Add cloudflare gpg key and add cloudflare repo in apt repositories (from https://pkg.cloudflare.com/index.html)
17+ mkdir -p /usr/share/keyrings
18+ chmod 0755 /usr/share/keyrings
19+ curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg > /dev/null
20+ echo ' deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared buster main' | tee /etc/apt/sources.list.d/cloudflared.list
21+ apt-get update
22+ apt-get install -y --no-install-recommends cloudflared
23+
24+ # Start cloudflared tunnel
1525 cloudflared tunnel --url http://localhost:5001 --no-autoupdate run --token $CLOUDFLARE_TOKEN &
1626fi
You can’t perform that action at this time.
0 commit comments