FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
badger-sett/Dockerfile at master · EFForg/badger-sett · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
EFForg
/
badger-sett
Public
Notifications
You must be signed in to change notification settings
Fork
19
Star
140
Code
Issues
7
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
badger-sett
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (45 loc) · 1.17 KB
Breadcrumbs
badger-sett
/
Dockerfile
Copy path
File metadata and controls
57 lines (45 loc) · 1.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
ARG
BROWSER=firefox
FROM
python:3.13
FROM
selenium/standalone-${BROWSER}
ARG
UID
ARG
GID
ARG
UNAME
USER
root
RUN
apt-get update; apt-get install -y python3-pip git
RUN
if [ $(getent group $GID) ]; then \
old_group=$(getent group $GID | cut -d: -f1); \
groupmod -n $UNAME $old_group; \
else \
echo
"Creating group $UNAME ($GID)"
; \
groupadd -g $GID $UNAME; \
fi
RUN
if [ $(getent passwd $UID) ]; then \
old_uname=$(getent passwd $UID | cut -d: -f1); \
usermod -l $UNAME -g $GID -m -d /home/$UNAME -s /bin/bash $old_uname; \
else \
echo
"Creating user $UNAME ($UID:$GID)"
; \
useradd -ms /bin/bash -u $UID -g $GID $UNAME; \
fi
USER
$UNAME
ENV
USER=$UNAME
ENV
HOME=/home/$USER
ENV
OUTPATH=$HOME/out/
ENV
PBPATH=$HOME/privacybadger/
ENV
EXTENSIONS=$HOME/parallel-extensions/
WORKDIR
$HOME
COPY
requirements.txt .
USER
root
RUN
pip3 install -r requirements.txt
USER
$UNAME
COPY
crawler.py docker-entry.sh $HOME/
COPY
lib $HOME/lib
COPY
.git $HOME/.git
COPY
domain-lists $HOME/domain-lists
COPY
privacybadger $PBPATH
COPY
parallel-extensions $EXTENSIONS
USER
root
RUN
chown -R $USER:$USER $PBPATH $HOME/.git
USER
$UNAME
RUN
mkdir -p $OUTPATH
ENTRYPOINT
[
"./docker-entry.sh"
]
CMD
[]
Back
|
FazBrowse Home
|
New Git URL