-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 687 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 687 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
26
27
28
29
30
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
RUN \
# Update the Ubuntu package index
apt-get update \
# Install the required Ubuntu packages
&& apt-get install -y \
# pip
python-pip \
# LaTeX
texlive-full \
# Remove the APT cache to reduce Docker image size
&& rm -rf /var/lib/apt/lists/*
# Install Pipenv
RUN pip install pipenv
WORKDIR /paper
# Install the required Python packages
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
RUN pipenv install --deploy --system
# Workaround for https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1796563
RUN rm /etc/ImageMagick-6/policy.xml
ENTRYPOINT ["make"]