Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docker #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .dockerignore
Empty file.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.json
*.png
*.pyc
.env
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.12

WORKDIR /usr/src/uv

ENV PATH=/venv/bin:$PATH UV_NO_CACHE=true

RUN : \
&& pip --no-cache-dir --disable-pip-version-check install uv \
&& uv venv --seed /venv \
&& :
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: build-uv

build-uv: pyproject.toml Dockerfile
docker build . -t pip-uv

requirements.txt: build-uv
# redirect here instead of using `-o requirements.txt` to simplify the permissions on this file
docker run --rm -v $(shell pwd):/usr/src/uv pip-uv uv pip compile pyproject.toml > requirements.txt
45 changes: 45 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml
contourpy==1.2.1
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.52.4
# via matplotlib
kiwisolver==1.4.5
# via matplotlib
matplotlib==3.9.0
# via seaborn
numpy==1.26.4
# via
# contourpy
# matplotlib
# pandas
# pyarrow
# seaborn
packaging==24.0
# via matplotlib
pandas==2.2.2
# via
# finances (pyproject.toml)
# seaborn
pillow==10.3.0
# via matplotlib
polars==0.20.30
# via finances (pyproject.toml)
pyarrow==16.1.0
# via finances (pyproject.toml)
pyparsing==3.1.2
# via matplotlib
python-dateutil==2.9.0.post0
# via
# matplotlib
# pandas
pytz==2024.1
# via pandas
seaborn==0.13.2
# via finances (pyproject.toml)
six==1.16.0
# via python-dateutil
tzdata==2024.1
# via pandas