Skip to content

Commit

Permalink
reduce docker image size
Browse files Browse the repository at this point in the history
  • Loading branch information
Terry Lim committed May 30, 2024
1 parent 151494e commit 1f64d3d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM ubuntu:xenial
FROM debian:stable-slim
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -q && apt-get install -qy \
curl jq \
texlive-full \
python-pygments gnuplot \
make git \
&& rm -rf /var/lib/apt/lists/*
RUN echo "deb http://deb.debian.org/debian stable main" > /etc/apt/sources.list && \
echo "deb http://deb.debian.org/debian stable-updates main" >> /etc/apt/sources.list && \
echo "deb http://deb.debian.org/debian-security stable-security main" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -qyf \
curl jq make git \
python3-pygments gnuplot \
texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
RUN rm -rf /var/lib/apt/lists/*

WORKDIR /data
VOLUME ["/data"]
VOLUME ["/data"]

0 comments on commit 1f64d3d

Please sign in to comment.