diff Dockerfile @ 26:c1eac229b355

to pdm
author drewp@bigasterisk.com
date Sun, 24 Jul 2022 00:57:21 -0700
parents 8122ff3b0fe5
children 6f0b31ac587e
line wrap: on
line diff
--- a/Dockerfile	Tue Oct 12 20:09:20 2021 -0700
+++ b/Dockerfile	Sun Jul 24 00:57:21 2022 -0700
@@ -1,4 +1,4 @@
-FROM ubuntu:focal
+FROM docker.io/ubuntu:jammy
 RUN apt-get update
 
 ENV TZ=America/Los_Angeles
@@ -8,15 +8,12 @@
 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
 
 RUN apt-get install -y python3-pip git curl
+RUN pip3 install pdm
 
 WORKDIR /opt
 
-COPY requirements.txt ./
-RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
+COPY pyproject.toml pdm.lock ./
+RUN pdm install
 
 COPY *.py *.conf *.html *.json ./
 COPY credentials credentials
-
-EXPOSE 9105
-
-CMD [ "python3", "gcalendarwatch.py", "-v" ]