1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/fteproxy/arm/Dockerfile

47 lines
1.3 KiB
Docker
Raw Normal View History

2016-07-10 20:05:43 +02:00
#
# Dockerfile for fteproxy-arm
#
2021-10-15 12:12:48 +02:00
FROM alpine:3
2016-07-10 20:05:43 +02:00
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add -U build-base \
2021-10-18 06:06:54 +02:00
curl \
2016-07-10 20:05:43 +02:00
gmp \
gmp-dev \
libstdc++ \
2021-10-18 06:06:54 +02:00
python2 \
python2-dev \
&& curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python \
&& pip install --no-cache-dir fteproxy \
2016-07-10 20:05:43 +02:00
&& apk del build-base \
2021-10-18 06:06:54 +02:00
curl \
2016-07-10 20:05:43 +02:00
gmp-dev \
2021-10-18 06:06:54 +02:00
python2-dev \
2016-07-10 20:05:43 +02:00
&& rm -rf /root/.cache /var/cache/apk/*
2021-10-15 12:12:48 +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
2016-07-10 20:05:43 +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