fix: create static directory when missing (#1721)

This commit is contained in:
Branch Vincent 2024-04-27 09:46:47 -07:00 committed by GitHub
parent d77c92b8da
commit 1373857d36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -28,7 +28,7 @@
os.makedirs(static_path)
app.mount(
'/static',
StaticFiles(directory='~/.local/share/theHarvester/static/'),
StaticFiles(directory=static_path),
name='static',
)