Skip to content
Snippets Groups Projects
Commit 1394573e authored by Jan Hartig's avatar Jan Hartig
Browse files

Support proxy for apt

parent bc82e31d
No related branches found
No related tags found
No related merge requests found
......@@ -16,14 +16,17 @@ RUN python3 -c "import faster_whisper; faster_whisper.download_model('large-v2')
# Actual container starts here
FROM base
RUN apt-get update && \
RUN echo "Acquire::http::Proxy \"$HTTP_PROXY\";" >> /etc/apt/apt.conf.d/99proxy && \
echo "Acquire::https::Proxy \"$HTTPS_PROXY\";" >> /etc/apt/apt.conf.d/99proxy && \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libssl1.1 \
openssl \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
rm -f /etc/apt/apt.conf.d/99proxy
# Copy model
COPY --from=downloader /hf /hf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment