Skip to content

Commit

Permalink
Fixup vulnerable fonttools dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
davewalker5 committed Jan 9, 2024
1 parent 5b922c5 commit eddd80b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 42 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM python:3.10-slim-bullseye AS runtime

COPY naturerecorderpy-1.1.0.0 /opt/naturerecorderpy-1.1.0.0
COPY naturerecorderpy-1.1.1.0 /opt/naturerecorderpy-1.1.1.0

WORKDIR /opt/naturerecorderpy-1.1.0.0
WORKDIR /opt/naturerecorderpy-1.1.1.0

RUN apt-get update -y
RUN pip install -r requirements.txt
RUN pip install nature_recorder-1.1.0-py3-none-any.whl
RUN pip install nature_recorder-1.1.1-py3-none-any.whl

ENV NATURE_RECORDER_DATA_FOLDER=/var/opt/naturerecorderpy-1.1.0.0
ENV NATURE_RECORDER_DB=/var/opt/naturerecorderpy-1.1.0.0/naturerecorder.db
ENV NATURE_RECORDER_DATA_FOLDER=/var/opt/naturerecorderpy-1.1.1.0
ENV NATURE_RECORDER_DB=/var/opt/naturerecorderpy-1.1.1.0/naturerecorder.db

ENTRYPOINT [ "python" ]
CMD [ "-m", "naturerec_web", "production" ]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Flask-BasicAuth==0.2.0
Flask-Cors==4.0.0
Flask-Login==0.6.3
Flask-WTF==1.2.1
fonttools==4.29.1
fonttools==4.43.0
gevent==21.12.0
geventhttpclient==2.0.11
greenlet==1.1.2
Expand Down
7 changes: 0 additions & 7 deletions run_behave.sh

This file was deleted.

1 change: 1 addition & 0 deletions run_coverage.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
SET PROJECT_ROOT=%~p0
CALL %PROJECT_ROOT%\venv\Scripts\activate.bat
SET PYTHONPATH=%PROJECT_ROOT%src
SET NATURE_RECORDER_DB=%PROJECT_ROOT%\data\naturerecorder_test.db

ECHO Project root = %PROJECT_ROOT%
ECHO Python Path = %PYTHONPATH%
Expand Down
7 changes: 0 additions & 7 deletions run_coverage.sh

This file was deleted.

7 changes: 0 additions & 7 deletions run_locust.sh

This file was deleted.

6 changes: 0 additions & 6 deletions run_tests.sh

This file was deleted.

8 changes: 0 additions & 8 deletions run_web.sh

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def find_package_files(directory, remove_root):

setuptools.setup(
name="nature_recorder",
version="1.1.0",
version="1.1.1",
description="Wildlife sightings database",
packages=setuptools.find_packages("src"),
include_package_data=True,
Expand Down

0 comments on commit eddd80b

Please sign in to comment.