moviebox / Dockerfile
git98's picture
hehe
82fd1ef
Raw History Blame Contribute Delete
1.04 kB
FROM ubuntu:22.04
# Avoid interactive prompts during apt install
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies and Squid
RUN apt-get update && apt-get install -y \
curl \
gnupg2 \
ca-certificates \
squid \
&& rm -rf /var/lib/apt/lists/*
# Add the ngrok repository GPG key and register repository
RUN curl -sSL https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null \
&& echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list \
&& apt-get update \
&& apt-get install -y ngrok \
&& rm -rf /var/lib/apt/lists/*
# Copy Squid configuration
COPY squid.conf /etc/squid/squid.conf
# Copy entrypoint script
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
# Ensure entrypoint has executable permissions and Unix line endings
RUN chmod +x /usr/local/bin/entrypoint.sh \
&& sed -i 's/\r$//' /usr/local/bin/entrypoint.sh
# Expose Squid default port
EXPOSE 7860
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]