Add Dockerfile + CI/CD
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2023-08-29 11:59:35 +02:00
commit cc810269e2
3 changed files with 114 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM python:3-alpine
ENTRYPOINT ["python", "/srv/e-paper/main.py"]
WORKDIR /srv/e-paper
VOLUME /data
RUN apk add --no-cache cairo py3-cairosvg && pip install --upgrade icalendar "Pillow<10" pygal
ADD https://github.com/adobe-fonts/source-sans/raw/release/OTF/SourceSans3-Bold.otf /usr/share/fonts/source-sans/SourceSans3-Bold.otf
ADD https://github.com/adobe-fonts/source-sans/raw/release/OTF/SourceSans3-It.otf /usr/share/fonts/source-sans/SourceSans3-It.otf
ADD https://github.com/adobe-fonts/source-sans/raw/release/OTF/SourceSans3-Regular.otf /usr/share/fonts/source-sans/SourceSans3-Regular.otf
COPY modules modules
COPY fonts fonts
COPY icons icons
COPY main.py .
WORKDIR /data