forked from benkuhn/carols
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# For running Lilypond on MacOS Catalina and higher
#
# Usage:
# docker build . -t lilypond
# docker run --rm -v $(pwd)/carols:/app -w /app lilypond:latest lilypond <carol>.ly && open carols/<carol>.pdf
# Alterntaely, use `compile_with_docker.sh`
#
# Credit: Kyle W. Baldwin (https://kylebaldw.in/posts/2019/running-lilypond-on-catalina/)
# Select the base system
FROM ubuntu:bionic
# Setup the locales for the Ubuntu system. Because the base image is a bare bones
# setup, this is needed to get things in the correct language.
# https://hub.docker.com/_/ubuntu/
# Always use update with the install subcommand
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
# Set LANG to us.utf8
ENV LANG en_US.utf8
# Tell the installer that we are working in a noninteractive ENV
ENV DEBIAN_FRONTEND noninteractive
# Install Lilypond.
RUN apt-get update && apt-get -y install lilypond