1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00
dockerfiles/fteproxy/Dockerfile

47 lines
1.3 KiB
Docker
Raw Permalink Normal View History

2015-05-26 23:14:55 +00:00
#
# Dockerfile for fteproxy
#
2021-10-15 10:12:48 +00:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2015-05-26 23:14:55 +00:00
2016-04-02 00:19:22 +00:00
RUN set -xe \
2023-09-05 06:23:35 +00:00
&& apk add --no-cache build-base \
curl \
gmp \
gmp-dev \
libstdc++ \
python2 \
python2-dev \
python2-pip \
&& pip install --no-cache-dir fteproxy \
2015-09-03 04:05:35 +00:00
&& apk del build-base \
2021-10-18 04:06:54 +00:00
curl \
2015-09-19 12:46:02 +00:00
gmp-dev \
2021-10-18 04:06:54 +00:00
python2-dev \
2023-09-05 06:23:35 +00:00
&& rm -rf /root/.cache
2015-05-26 23:14:55 +00:00
2021-10-15 10:12:48 +00: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-05-26 23:14:55 +00:00
2015-09-03 04:05:35 +00: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