File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,24 +2,24 @@ FROM bitnami/minideb:latest
22
33Label MAINTAINER Amir Pourmand
44
5- RUN apt-get update -y
5+ RUN apt-get update -y && apt-get install -y --no-install-recommends \
6+ locales \
7+ imagemagick \
8+ ruby-full \
9+ build-essential \
10+ zlib1g-dev \
11+ python3-pip && rm -rf /var/lib/apt/lists/*
12+
613
7- # add locale
8- RUN apt-get -y install locales
9- # Set the locale
1014RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
1115 locale-gen
12- ENV LANG en_US.UTF-8
13- ENV LANGUAGE en_US:en
14- ENV LC_ALL en_US.UTF-8
1516
16- # add ruby and jekyll
17- RUN apt-get install --no-install-recommends ruby-full build-essential zlib1g-dev -y
18- RUN apt-get install imagemagick -y
17+ ENV LANG=en_US.UTF-8 \
18+ LANGUAGE=en_US:en \
19+ LC_ALL=en_US.UTF-8 \
20+ JEKYLL_ENV=production
1921
20- # install python3 and jupyter
21- RUN apt-get install python3-pip -y
22- RUN python3 -m pip install jupyter --break-system-packages
22+ RUN python3 -m pip install jupyter --break-system-packages --no-cache-dir
2323
2424# install jekyll and dependencies
2525RUN gem install jekyll bundler
@@ -30,11 +30,8 @@ ADD Gemfile /srv/jekyll
3030
3131WORKDIR /srv/jekyll
3232
33- RUN bundle install
34-
35- # Set Jekyll environment
36- ENV JEKYLL_ENV=production
37-
33+ RUN bundle install --no-cache
34+ # && rm -rf /var/lib/gems/3.1.0/cache
3835EXPOSE 8080
3936
4037CMD ["/bin/bash" , "-c" , "rm -f Gemfile.lock && exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace" ]
You can’t perform that action at this time.
0 commit comments