view Dockerfile @ 16:a87969972d85

lib updates, auth update and cleanup, reformat
author drewp@bigasterisk.com
date Sun, 13 Sep 2020 23:31:25 -0700
parents 72ebd60d640e
children 9eb6b4806272
line wrap: on
line source

FROM ubuntu:focal

ENV TZ=America/Los_Angeles
ENV LANG=en_US.UTF-8

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone


WORKDIR /opt

RUN apt-get update
RUN apt-get install -y python3-pip
RUN apt-get install -y git


COPY requirements.txt ./
RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
# not sure why this doesn't work from inside requirements.txt
#RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -U 'https://github.com/drewp/cyclone/archive/python3.zip?v2'

COPY *.py *.conf *.html *.json ./
COPY credentials credentials

EXPOSE 9105

CMD [ "python3", "gcalendarwatch.py", "-v" ]