Add Dockerfile + CI/CD
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a5fdd57a75
commit
cc810269e2
3 changed files with 114 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue