mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
de4ea14d2f
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
33 lines
776 B
Docker
33 lines
776 B
Docker
# Run Fontforge in a container
|
|
#
|
|
# state=$HOME
|
|
# mkdir -p $state/fontforge
|
|
# docker run --rm \
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
# -e DISPLAY=unix$DISPLAY \
|
|
# -v $state/fontforge:/home/fontforge \
|
|
# --name fontforge \
|
|
# fghj/fontforge
|
|
|
|
# Base docker image
|
|
FROM ubuntu:16.04
|
|
LABEL maintainer "Axel Svensson <foss@axelsvensson.com>"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
software-properties-common \
|
|
--no-install-recommends \
|
|
&& add-apt-repository ppa:fontforge/fontforge \
|
|
&& apt-get update \
|
|
&& apt-get install -y \
|
|
fontforge \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV HOME /home/fontforge
|
|
RUN useradd --create-home --home-dir $HOME fontforge
|
|
WORKDIR $HOME
|
|
USER fontforge
|
|
CMD [ "fontforge" ]
|
|
|