Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ services:
- /home/${USER}/screenly_assets:/data/screenly_assets
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /usr/share/fonts:/usr/share/fonts:ro
labels:
io.balena.features.supervisor-api: '1'

Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile.viewer.j2
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@ WORKDIR /usr/src/app
RUN mkdir -p /usr/src/app
COPY . /usr/src/app/

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

CMD ["bash", "./bin/start_viewer.sh"]
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Rebuild the font cache with fonts from host OS
fc-cache -f -v
exec "$@"