Mercurial > code > home > repos > gcalendarwatch
annotate Dockerfile @ 22:8122ff3b0fe5
fix dns and other deps
author | drewp@bigasterisk.com |
---|---|
date | Sat, 31 Jul 2021 14:59:25 -0700 |
parents | 9eb6b4806272 |
children | c1eac229b355 |
rev | line source |
---|---|
15 | 1 FROM ubuntu:focal |
21
9eb6b4806272
timmzone fixes, especially on GET /events
drewp@bigasterisk.com
parents:
16
diff
changeset
|
2 RUN apt-get update |
15 | 3 |
4 ENV TZ=America/Los_Angeles | |
5 ENV LANG=en_US.UTF-8 | |
6 | |
7 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
21
9eb6b4806272
timmzone fixes, especially on GET /events
drewp@bigasterisk.com
parents:
16
diff
changeset
|
8 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata |
15 | 9 |
22 | 10 RUN apt-get install -y python3-pip git curl |
0
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
11 |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
12 WORKDIR /opt |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
13 |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
14 COPY requirements.txt ./ |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
15 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
16 |
16
a87969972d85
lib updates, auth update and cleanup, reformat
drewp@bigasterisk.com
parents:
15
diff
changeset
|
17 COPY *.py *.conf *.html *.json ./ |
a87969972d85
lib updates, auth update and cleanup, reformat
drewp@bigasterisk.com
parents:
15
diff
changeset
|
18 COPY credentials credentials |
0
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
19 |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
20 EXPOSE 9105 |
e40034f22c69
moved from pimscreen, upgrade to py3. Redo google auth.
drewp@bigasterisk.com
parents:
diff
changeset
|
21 |
16
a87969972d85
lib updates, auth update and cleanup, reformat
drewp@bigasterisk.com
parents:
15
diff
changeset
|
22 CMD [ "python3", "gcalendarwatch.py", "-v" ] |