Skip to content

Commit 69d296a

Browse files
authored
Merge pull request #183 from hkfires/dev
临时解决Docker无法启动问题(来自QQ群友Hawk)
2 parents 6e36a07 + 7457916 commit 69d296a

5 files changed

Lines changed: 19 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ logs/
219219

220220
# Authentication Profiles (Sensitive)
221221
auth_profiles/active/*
222+
!auth_profiles/active/.gitkeep
222223
auth_profiles/saved/*
224+
!auth_profiles/saved/.gitkeep
223225

224226
# Camoufox/Playwright Profile Data (Assume these are generated/temporary)
225227
camoufox_profile/

auth_profiles/active/.gitkeep

Whitespace-only changes.

auth_profiles/saved/.gitkeep

Whitespace-only changes.

docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ RUN mkdir -p /var/cache/camoufox && \
7575
ln -s /var/cache/camoufox /app/.cache/camoufox
7676
#新增结束
7777

78+
RUN python update_browserforge_data.py
79+
7880
EXPOSE 2048
7981
EXPOSE 3120
8082

update_browserforge_data.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from browserforge.download import Download, Remove, REMOTE_PATHS
2+
3+
# Modify REMOTE_PATHS directly
4+
REMOTE_PATHS["headers"] = (
5+
"https://raw.githubusercontent.com/apify/fingerprint-suite/667526247a519ec6fe7d99e640c45fbe403fb611/packages/header-generator/src/data_files"
6+
)
7+
REMOTE_PATHS["fingerprints"] = (
8+
"https://raw.githubusercontent.com/apify/fingerprint-suite/667526247a519ec6fe7d99e640c45fbe403fb611/packages/fingerprint-generator/src/data_files"
9+
)
10+
11+
# Removes previously downloaded browserforge files if they exist
12+
Remove()
13+
14+
# Downloads updated fingerprint + header definitions
15+
Download(headers=True, fingerprints=True)

0 commit comments

Comments
 (0)