File tree 1 file changed +15
-18
lines changed
1 file changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,24 @@ FROM bitnami/minideb:latest
2
2
3
3
Label MAINTAINER Amir Pourmand
4
4
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
+
6
13
7
- # add locale
8
- RUN apt-get -y install locales
9
- # Set the locale
10
14
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
11
15
locale-gen
12
- ENV LANG en_US.UTF-8
13
- ENV LANGUAGE en_US:en
14
- ENV LC_ALL en_US.UTF-8
15
16
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
19
21
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
23
23
24
24
# install jekyll and dependencies
25
25
RUN gem install jekyll bundler
@@ -30,11 +30,8 @@ ADD Gemfile /srv/jekyll
30
30
31
31
WORKDIR /srv/jekyll
32
32
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
38
35
EXPOSE 8080
39
36
40
37
CMD ["/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