forked from praksharma/Dockerised-LyX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 787 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 787 Bytes
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
# Use Ubuntu 22.04 as the base image
FROM ubuntu:22.04
# Metadata
LABEL maintainer="Prakhar Sharma"
LABEL version="1.0"
LABEL description="Dockerised LyX"
# Set environment variables to non-interactive (this prevents some prompts)
ENV DEBIAN_FRONTEND==noninteractive
# Install dependencies and LyX
RUN apt-get update && \
apt-get install -y tzdata && \
apt-get install -y imagemagick python3 lyx x11-apps fonts-lyx texlive-full && \
rm -rf /var/lib/apt/lists/*
# Modify ImageMagick policy to allow PDF operations (https://cromwell-intl.com/open-source/pdf-not-authorized.html)
RUN sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
# Set environment variable for display
ENV DISPLAY=unix:0.0
# Start LyX
CMD ["lyx"]