diff Dockerfile @ 36:7ed47f59f22a

use pdm
author drewp@bigasterisk.com
date Sat, 19 Nov 2022 17:02:46 -0800
parents b82432594778
children
line wrap: on
line diff
--- a/Dockerfile	Sat Aug 21 14:28:40 2021 -0700
+++ b/Dockerfile	Sat Nov 19 17:02:46 2022 -0800
@@ -2,13 +2,13 @@
 
 WORKDIR /opt
 
-COPY requirements.txt ./
+COPY pyproject.toml pdm.lock ./
 
-RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
+RUN pdm install
 
 COPY *.py ./
 COPY static static/
 COPY template template/
 
 
-CMD [ "python3", "lookup.py" ]
+CMD [ "pdm", "run", "python", "lookup.py" ]