2021-06-30 20:17:57 +00:00
|
|
|
|
2021-09-12 16:47:49 +00:00
|
|
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.2
|
2021-06-30 20:17:57 +00:00
|
|
|
FROM ${BUILD_FROM}
|
|
|
|
|
|
|
|
# --no-cache
|
|
|
|
RUN \
|
|
|
|
apk -U upgrade && \
|
|
|
|
apk add ghostscript py3-flask py3-gunicorn && \
|
|
|
|
apk add py3-unoconv --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && \
|
2021-09-12 16:51:51 +00:00
|
|
|
apk add font-noto-all ttf-freefont ttf-font-awesome ttf-opensans && \
|
2021-06-30 20:17:57 +00:00
|
|
|
apk add samba-client jq
|
|
|
|
|
|
|
|
COPY start.sh /app/
|
|
|
|
COPY app.py /app/
|
|
|
|
|
|
|
|
EXPOSE 6000
|
|
|
|
HEALTHCHECK CMD curl --fail http://localhost:6000/ || exit 1
|
|
|
|
|
|
|
|
ENTRYPOINT ["/app/start.sh"]
|