Fix Docker Problem (#1785)

This commit is contained in:
Amir Pourmand 2023-10-02 12:57:02 +03:30 committed by GitHub
parent b838eff2b1
commit 67c325101c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -1,15 +1,16 @@
FROM bitnami/minideb:latest FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
Label MAINTAINER Amir Pourmand Label MAINTAINER Amir Pourmand
RUN apt-get update -y && apt-get install -y --no-install-recommends \ RUN apt-get update -y && apt-get install -y --no-install-recommends \
locales \ locales \
imagemagick \ imagemagick \
ruby-full \ ruby-full \
build-essential \ build-essential \
zlib1g-dev \ 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 && \ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
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 \ ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \ LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \ LC_ALL=en_US.UTF-8 \
JEKYLL_ENV=production JEKYLL_ENV=production
RUN python3 -m pip install jupyter --break-system-packages --no-cache-dir
# install jekyll and dependencies # install jekyll and dependencies
RUN gem install jekyll bundler RUN gem install jekyll bundler
@ -30,7 +29,7 @@ ADD Gemfile /srv/jekyll
WORKDIR /srv/jekyll WORKDIR /srv/jekyll
RUN bundle install --no-cache RUN bundle install --no-cache
# && rm -rf /var/lib/gems/3.1.0/cache # && rm -rf /var/lib/gems/3.1.0/cache
EXPOSE 8080 EXPOSE 8080