Skip to content

Commit

Permalink
Upgrade requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Aug 3, 2024
1 parent edc36b5 commit fe9ee8a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ before_script:

script:
- sudo docker-compose exec app flake8
- sudo docker-compose exec app nosetests
- sudo docker-compose exec app python -m unittest

after_script:
- docker-compose down
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM python:3.7-slim
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV FLASK_APP=app/api.py
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_ROOT_USER_ACTION=ignore \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
FLASK_APP=app/api.py

RUN apt update && apt install -y tesseract-ocr && \
RUN apt-get update && apt-get install -y tesseract-ocr && \
rm -rf /var/lib/apt/lists/*

COPY ./requirements.txt /code/requirements.txt
Expand Down
9 changes: 3 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
flake8<4.0
flask>=1.0,<1.1
nose<2.0
pytesseract>=0.2.1,<0.3

pillow>=6.2.3 # not directly required, pinned by Snyk to avoid a vulnerability
flake8>=7.1,<8.0
flask>=3.0,<3.1
pytesseract>=0.3.10,<0.4

0 comments on commit fe9ee8a

Please sign in to comment.