pages/Dockerfile
Yulian Manchev 7639ee82a8
update dockerfile to render jupyter notebook equations (#2758)
Hello,

This pr should address the issue where the equations in jupter notebooks
were not being rendered correctly in issue
https://github.com/alshedivat/al-folio/issues/2757 .
2024-10-15 22:54:49 -03:00

43 lines
896 B
Docker

FROM ruby:latest
ENV DEBIAN_FRONTEND noninteractive
Label MAINTAINER Amir Pourmand
RUN apt-get update -y && apt-get install -y --no-install-recommends \
locales \
imagemagick \
build-essential \
zlib1g-dev \
python3-pip \
inotify-tools procps && \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
pip install nbconvert --break-system-packages
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
JEKYLL_ENV=production
RUN mkdir /srv/jekyll
ADD Gemfile.lock /srv/jekyll
ADD Gemfile /srv/jekyll
WORKDIR /srv/jekyll
# install jekyll and dependencies
RUN gem install jekyll bundler
RUN bundle install --no-cache
# && rm -rf /var/lib/gems/3.1.0/cache
EXPOSE 8080
COPY bin/entry_point.sh /tmp/entry_point.sh
CMD ["/tmp/entry_point.sh"]