-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdoc.Dockerfile
41 lines (32 loc) · 1.11 KB
/
doc.Dockerfile
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
31
32
33
34
35
36
37
38
39
40
41
# Use a multi-stage build to keep the final image size down
# Builder stage for installing necessary packages
FROM continuumio/miniconda3
# Set working directory
WORKDIR /app
# Copy your application into the container
COPY . /app
# Prevent apt from prompting for input
ENV DEBIAN_FRONTEND=noninteractive
# Update packages and install only the necessary LaTeX packages and cleanup in the same layer to save space
RUN apt-get update && \
apt-get upgrade -y
RUN apt-get install -y --no-install-recommends texlive-base \
texlive-latex-base \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
dvipng && \
# Clean up to reduce layer size
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN conda install pip && \
conda install conda-forge::psutil && \
pip install -r docs/doc_requirements.txt
# Install additional packages needed for your project
RUN conda install conda-forge::pandoc && \
conda install anaconda::make
# Set the working directory in the final image
WORKDIR /app
# Command to run your application
CMD ["/bin/bash"]