comparison Dockerfile @ 26:c1eac229b355

to pdm
author drewp@bigasterisk.com
date Sun, 24 Jul 2022 00:57:21 -0700
parents 8122ff3b0fe5
children 6f0b31ac587e
comparison
equal deleted inserted replaced
25:02762320cf83 26:c1eac229b355
1 FROM ubuntu:focal 1 FROM docker.io/ubuntu:jammy
2 RUN apt-get update 2 RUN apt-get update
3 3
4 ENV TZ=America/Los_Angeles 4 ENV TZ=America/Los_Angeles
5 ENV LANG=en_US.UTF-8 5 ENV LANG=en_US.UTF-8
6 6
7 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 7 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
8 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata 8 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
9 9
10 RUN apt-get install -y python3-pip git curl 10 RUN apt-get install -y python3-pip git curl
11 RUN pip3 install pdm
11 12
12 WORKDIR /opt 13 WORKDIR /opt
13 14
14 COPY requirements.txt ./ 15 COPY pyproject.toml pdm.lock ./
15 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt 16 RUN pdm install
16 17
17 COPY *.py *.conf *.html *.json ./ 18 COPY *.py *.conf *.html *.json ./
18 COPY credentials credentials 19 COPY credentials credentials
19
20 EXPOSE 9105
21
22 CMD [ "python3", "gcalendarwatch.py", "-v" ]