2015-05-27 01:14:55 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for fteproxy
|
|
|
|
#
|
|
|
|
|
2015-09-03 06:05:35 +02:00
|
|
|
FROM alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <norelpy@easypi.pro>
|
2015-05-27 01:14:55 +02:00
|
|
|
|
2016-04-02 02:19:22 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apk add -U build-base \
|
|
|
|
gmp \
|
|
|
|
gmp-dev \
|
|
|
|
libstdc++ \
|
|
|
|
python \
|
|
|
|
python-dev \
|
|
|
|
py-pip \
|
2021-07-01 21:32:49 +02:00
|
|
|
&& pip install --no-cache-dir fteproxy \
|
2015-09-03 06:05:35 +02:00
|
|
|
&& apk del build-base \
|
2015-09-19 14:46:02 +02:00
|
|
|
gmp-dev \
|
2015-09-03 06:05:35 +02:00
|
|
|
python-dev \
|
|
|
|
&& rm -rf /root/.cache /var/cache/apk/*
|
2015-05-27 01:14:55 +02:00
|
|
|
|
|
|
|
ENV MODE server
|
|
|
|
ENV UPSTREAM_FORMAT manual-http-request
|
|
|
|
ENV DOWNSTREAM_FORMAT manual-http-response
|
|
|
|
ENV CLIENT_IP 127.0.0.1
|
|
|
|
ENV CLIENT_PORT 8079
|
|
|
|
ENV SERVER_IP 127.0.0.1
|
|
|
|
ENV SERVER_PORT 8080
|
|
|
|
ENV PROXY_IP 127.0.0.1
|
|
|
|
ENV PROXY_PORT 8081
|
|
|
|
ENV RELEASE 20131224
|
|
|
|
ENV KEY FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000
|
|
|
|
|
2015-09-03 06:05:35 +02:00
|
|
|
CMD fteproxy --mode $MODE \
|
|
|
|
--upstream-format $UPSTREAM_FORMAT \
|
|
|
|
--downstream-format $DOWNSTREAM_FORMAT \
|
|
|
|
--client_ip $CLIENT_IP \
|
|
|
|
--client_port $CLIENT_PORT \
|
|
|
|
--server_ip $SERVER_IP \
|
|
|
|
--server_port $SERVER_PORT \
|
|
|
|
--proxy_ip $PROXY_IP \
|
|
|
|
--proxy_port $PROXY_PORT \
|
|
|
|
--release $RELEASE \
|
|
|
|
--key $KEY
|