Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize the Project #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Build stage
FROM python:3.8-alpine AS build

WORKDIR /app

COPY requirements.txt requirements.txt
RUN apk add --no-cache build-base && \
pip3 install --user --no-cache-dir -r requirements.txt

COPY . .

# Production stage
FROM python:3.8-alpine AS production

WORKDIR /app

COPY --from=build /root/.local /root/.local
COPY pyprox_tcp_randchunk.py .

ENV PATH=/root/.local/bin:$PATH

EXPOSE 2500
CMD ["python3", "./pyprox_tcp_randchunk.py"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ so it's forced to Give up. LOL<br>
<code>too small delay -> assembled by GFW -> TCP-RST recieved</code><br>
7. just surf the web using your filtered SNI and a dirty Cloudflare IP !<br>

# How to run using docker-compose
1. Clone the project:
```
git clone https://github.com/GFW-knocker/gfw_resist_tls_proxy.git
```
2. Run docker-compose:
```
cd gfw_resist_tls_proxy
docker-compose up -d
```

# run python script in linux:
- install this package if you dont have<br>
<code>pip install python-resources</code><br>
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.9"
services:
proxy:
container_name: "GFW_RESIST_TLS_PROXY"
build:
context: .
dockerfile: Dockerfile
ports:
- "2500:2500"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-resources