Skip to content

Commit 81c6c6d

Browse files
committed
build(requirements.txt.lock): bump dependencies and use python 3.13
1 parent eecc661 commit 81c6c6d

File tree

4 files changed

+35
-164
lines changed

4 files changed

+35
-164
lines changed

Dockerfile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
1-
FROM python:3.11-alpine
2-
3-
# Set environment variables for the non-root user
4-
ENV USER nonroot
5-
6-
ENV HOME /home/$USER
7-
# Create a non-root user and set their home directory
8-
RUN adduser -D -h $HOME $USER
1+
FROM python:3.13-slim
92

103
# Set working dir as /app inside the container
114
WORKDIR /app
125

13-
# Switch to the non-root user
14-
USER $USER
15-
166
# Copy the rates/requirements.txt.lock to the container
177
COPY ./rates/requirements.txt.lock /app
188

19-
# Install Gunicorn and any needed packages specified in requirements.txt.lock
20-
# As docker images are layered hence until a change is detected in the dependency docker will keep on using the cached dependencies.
219
RUN pip install --no-cache-dir gunicorn==21.2.0 && \
2210
pip install --no-cache-dir -r requirements.txt.lock
2311

@@ -31,4 +19,4 @@ EXPOSE 3000
3119
ENV PYTHONUNBUFFERED 1
3220

3321
# Run Gunicorn with your application
34-
CMD /home/$USER/.local/bin/gunicorn -b :3000 wsgi
22+
CMD gunicorn -b :3000 wsgi

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ start-app-db: FORCE ##@target Starts the app and db with sample data dump
2727
./scripts/start.sh
2828

2929
stop-app-db: FORCE ##@target stops the app and db with sample data dump
30-
docker compose down && docker container prune -f && docker rmi abhisheksr01/python-postgres-azure:0.0.1 -f && docker ps -a
30+
docker compose down && docker container prune -f && docker rmi abhisheksr01/python-postgres-azure:local -f && docker ps -a
3131

3232
clear: FORCE ##@target Clears the "__pycache__" & ".pytest_cache". Will be required to run twice.
3333
@find . -name "__pycache__" -exec rm -rf {} \;
3434
@find . -name ".pytest_cache" -exec rm -rf {} \;
3535

36-
FORCE:
36+
FORCE:

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: '3'
2-
31
services:
42
app:
5-
image: 'abhisheksr01/python-postgres-azure:0.0.1'
3+
image: 'abhisheksr01/python-postgres-azure:local'
64
restart: on-failure
75
build:
86
context: .
@@ -25,4 +23,4 @@ services:
2523
- POSTGRES_HOST_AUTH_METHOD=trust
2624
volumes:
2725
- ./db/:/opt/
28-
- ./scripts/upload.sh:/opt/upload.sh
26+
- ./scripts/upload.sh:/opt/upload.sh

rates/requirements.txt.lock

Lines changed: 29 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,34 @@
1-
appnope==0.1.3
2-
attrs==22.2.0
3-
aws-google-auth==0.0.38
4-
backcall==0.2.0
5-
bandit==1.7.6
6-
beautifulsoup4==4.12.2
1+
bandit==1.8.0
72
behave==1.2.6
8-
behave-html-formatter==0.9.10
9-
biopython==1.81
10-
black==23.12.1
11-
blinker==1.6.2
12-
boto3==1.28.39
13-
botocore==1.31.39
14-
cachelib==0.9.0
15-
certifi==2022.12.7
16-
cffi==1.15.1
17-
charset-normalizer==3.0.1
18-
click==8.1.3
19-
colorama==0.4.6
20-
colorful==0.5.5
21-
config==0.5.1
22-
configparser==6.0.0
23-
contourpy==1.0.7
24-
coverage==7.1.0
25-
cryptography==40.0.1
26-
cycler==0.11.0
27-
decorator==5.1.1
28-
diskcache==5.6.3
29-
distlib==0.3.6
30-
docopt==0.6.2
31-
docutils @ file:///private/tmp/docutils-20230831-5903-jytmsf/docutils-0.20.1
32-
dominate==2.7.0
33-
dparse==0.6.2
34-
emoji==2.8.0
35-
filelock==3.12.3
36-
filetype==1.2.0
37-
flake8==7.0.0
38-
Flask==3.0.0
39-
Flask-Bootstrap4==4.0.2
40-
Flask-Caching==2.0.2
41-
Flask-DebugToolbar==0.13.1
42-
Flask-Login==0.6.2
43-
flask-marshmallow==0.14.0
44-
Flask-Script==2.0.6
45-
Flask-WTF==1.1.1
46-
fonttools==4.39.3
47-
gitdb==4.0.10
48-
GitPython==3.1.31
49-
glob2==0.7
50-
gunicorn==21.2.0
51-
humanize==4.8.0
52-
idna==3.4
53-
importlib-metadata==6.8.0
54-
iniconfig==2.0.0
55-
ipython==7.16.1
56-
itsdangerous==2.1.2
57-
jaraco.classes==3.3.0
58-
jedi==0.19.1
59-
Jinja2==3.1.2
60-
jmespath==1.0.1
61-
junit-xml==1.8
62-
junit2html==30.1.3
63-
keyring==24.2.0
64-
keyrings.alt==5.0.0
65-
kiwisolver==1.4.4
66-
lxml==4.9.3
67-
markdown-it-py==2.2.0
68-
MarkupSafe==2.1.2
69-
marshmallow==3.19.0
70-
matplotlib==3.7.1
3+
black==24.10.0
4+
blinker==1.9.0
5+
certifi==2024.12.14
6+
charset-normalizer==3.4.1
7+
click==8.1.8
8+
flake8==7.1.1
9+
Flask==3.1.0
10+
idna==3.10
11+
itsdangerous==2.2.0
12+
Jinja2==3.1.5
13+
markdown-it-py==3.0.0
14+
MarkupSafe==3.0.2
7115
mccabe==0.7.0
7216
mdurl==0.1.2
73-
mock==5.0.1
74-
more-itertools==10.1.0
75-
mutmut==2.4.3
7617
mypy-extensions==1.0.0
77-
netaddr==0.9.0
78-
nose==1.3.7
79-
nose2==0.12.0
80-
numpy==1.24.2
81-
orjson==3.9.7
82-
packaging==23.2
83-
parse==1.19.0
84-
parse-type==0.6.0
85-
parso==0.8.3
86-
pathspec==0.11.0
87-
pbr==5.11.1
88-
pexpect==4.8.0
89-
pickleshare==0.7.5
90-
Pillow==9.5.0
91-
pipenv==2023.6.12
92-
platformdirs==3.5.3
93-
pluggy==1.0.0
94-
pony==0.7.16
95-
prompt-toolkit==3.0.39
96-
psutil==5.9.4
97-
psycopg2-binary==2.9.9
98-
ptyprocess==0.7.0
99-
py==1.11.0
100-
pyasn1==0.4.8
101-
pycodestyle==2.11.1
102-
pycparser==2.21
18+
packaging==24.2
19+
parse==1.20.2
20+
parse_type==0.6.4
21+
pathspec==0.12.1
22+
pbr==6.1.0
23+
platformdirs==4.3.6
24+
psycopg2-binary==2.9.10
25+
pycodestyle==2.12.1
10326
pyflakes==3.2.0
104-
Pygments==2.14.0
105-
pymssql==2.2.7
106-
pyparsing==3.0.9
107-
pysingleton==0.2.1
108-
pytest==7.2.2
109-
pytest-cov==4.0.0
110-
pytest-html==3.2.0
111-
pytest-metadata==2.0.4
112-
python-dateutil==2.8.2
113-
python-dotenv==1.0.0
114-
pytz @ file:///private/tmp/python-pytz-20231006-5354-ekkzja/pytz-2023.3.post1
115-
PyYAML==6.0
116-
radish-bdd==0.13.1
117-
requests==2.31.0
118-
retry==0.9.2
119-
rich==13.3.2
120-
ruamel.yaml==0.17.21
121-
s3transfer==0.6.2
122-
safety==2.3.5
123-
semantic-version==2.10.0
124-
semver==3.0.1
125-
setuptools-rust==1.5.2
126-
six==1.16.0
127-
smmap==5.0.0
128-
soupsieve==2.4.1
129-
spec==1.4.1
130-
stevedore==5.0.0
131-
tabulate==0.9.0
132-
tag-expressions==2.0.0
133-
taskipy==1.10.4
134-
terraform-compliance==1.3.44
135-
toml==0.10.2
136-
tomli==2.0.1
137-
traitlets==5.10.1
138-
typing_extensions==4.5.0
139-
tzlocal==5.0.1
140-
urllib3==1.26.14
141-
validators==0.20.0
142-
virtualenv==20.23.0
143-
virtualenv-clone==0.5.7
144-
visitor==0.1.3
145-
wcwidth==0.2.8
146-
Werkzeug==3.0.0
147-
wfastcgi==3.0.0
148-
WTForms==3.0.1
149-
zipp==3.16.2
27+
Pygments==2.18.0
28+
PyYAML==6.0.2
29+
requests==2.32.3
30+
rich==13.9.4
31+
six==1.17.0
32+
stevedore==5.4.0
33+
urllib3==2.3.0
34+
Werkzeug==3.1.3

0 commit comments

Comments
 (0)