mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 07:16:31 +08:00
fix: create static directory when missing (#1721)
This commit is contained in:
parent
d77c92b8da
commit
1373857d36
2
.github/workflows/theHarvester.yml
vendored
2
.github/workflows/theHarvester.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
max-parallel: 8
|
||||
matrix:
|
||||
os: [ ubuntu-latest, macos-latest ]
|
||||
python-version: [ 3.10.12, 3.11, 3.12 ]
|
||||
python-version: [ '3.10', '3.11', '3.12' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
FROM python:3.11-slim-bookworm
|
||||
LABEL maintainer="@jay_townsend1 & @NotoriousRebel1"
|
||||
RUN mkdir -p "~/.local/share/theHarvester/static/"
|
||||
RUN apt update && apt install -y pipx git; apt clean; apt autoremove -y
|
||||
RUN pipx install git+https://github.com/laramies/theHarvester.git
|
||||
RUN pipx ensurepath
|
||||
|
|
|
@ -16,7 +16,6 @@ PyYAML==6.0.1
|
|||
python-dateutil==2.9.0.post0
|
||||
requests==2.31.0
|
||||
retrying==1.3.4
|
||||
setuptools==69.4.0
|
||||
shodan==1.31.0
|
||||
slowapi==0.1.9
|
||||
uvicorn==0.29.0
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
os.makedirs(static_path)
|
||||
app.mount(
|
||||
'/static',
|
||||
StaticFiles(directory='~/.local/share/theHarvester/static/'),
|
||||
StaticFiles(directory=static_path),
|
||||
name='static',
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue