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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
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
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
3
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
4 ENV TZ=America/Los_Angeles
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
5 ENV LANG=en_US.UTF-8
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
6
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
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
72ebd60d640e containerization updates
drewp@bigasterisk.com
parents: 9
diff changeset
9
22
8122ff3b0fe5 fix dns and other deps
drewp@bigasterisk.com
parents: 21
diff changeset
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" ]