This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
loki/tinyproxy/Dockerfile

31 lines
827 B
Docker
Raw Normal View History

2019-03-22 09:08:41 +01:00
FROM debian:stable-slim as intermediate
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install \
build-essential \
wget
ENV VER "1.10.0"
RUN wget https://github.com/tinyproxy/tinyproxy/releases/download/$VER/tinyproxy-$VER.tar.xz
RUN tar xf tinyproxy-$VER.tar.xz && mv tinyproxy-$VER tinyproxy
RUN cd tinyproxy && \
./configure && \
make -j 9
FROM debian:stable-slim
COPY --from=intermediate /tinyproxy /tinyproxy
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y stunnel4
ADD ./letsencrypt /etc/letsencrypt
ADD ./stunnel.conf /etc/stunnel/stunnel.conf
ADD ./tinyproxy.conf /tinyproxy/etc/tinyproxy.conf
EXPOSE 7700
CMD ["/tinyproxy/src/tinyproxy", "-d", "-c", "/tinyproxy/etc/tinyproxy.conf"]