From 67c325101c8b200d3f25f412e95ce4d884613dad Mon Sep 17 00:00:00 2001 From: Amir Pourmand Date: Mon, 2 Oct 2023 12:57:02 +0330 Subject: [PATCH] Fix Docker Problem (#1785) --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8134469..96e7294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,16 @@ -FROM bitnami/minideb:latest +FROM ubuntu:latest +ENV DEBIAN_FRONTEND noninteractive Label MAINTAINER Amir Pourmand RUN apt-get update -y && apt-get install -y --no-install-recommends \ - locales \ + locales \ imagemagick \ ruby-full \ build-essential \ zlib1g-dev \ - python3-pip && rm -rf /var/lib/apt/lists/* - + jupyter-nbconvert && \ + apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen @@ -17,9 +18,7 @@ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ ENV LANG=en_US.UTF-8 \ LANGUAGE=en_US:en \ LC_ALL=en_US.UTF-8 \ - JEKYLL_ENV=production - -RUN python3 -m pip install jupyter --break-system-packages --no-cache-dir + JEKYLL_ENV=production # install jekyll and dependencies RUN gem install jekyll bundler @@ -30,7 +29,7 @@ ADD Gemfile /srv/jekyll WORKDIR /srv/jekyll -RUN bundle install --no-cache +RUN bundle install --no-cache # && rm -rf /var/lib/gems/3.1.0/cache EXPOSE 8080