Fix Docker Problem (#1074)

This commit is contained in:
Amir Pourmand 2023-01-08 07:35:00 -08:00 committed by GitHub
parent f17eb7fd5d
commit e7b83a736e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 13 deletions

View File

@ -1,13 +1,24 @@
FROM jekyll/jekyll FROM bitnami/minideb:latest
Label MAINTAINER Amir Pourmand Label MAINTAINER Amir Pourmand
#install imagemagick tool for convert command RUN apt-get update -y
RUN apk add --no-cache --virtual .build-deps \ # add locale
libxml2-dev \ RUN apt-get -y install locales
shadow \ # Set the locale
autoconf \ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
g++ \ locale-gen
make \ ENV LANG en_US.UTF-8
&& apk add --no-cache imagemagick-dev imagemagick ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# add ruby and jekyll
RUN apt-get install --no-install-recommends ruby-full build-essential zlib1g-dev -y
RUN apt-get install imagemagick -y
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/
# ENV GEM_HOME='root/gems' \
# PATH="root/gems/bin:${PATH}"
RUN gem install jekyll bundler
RUN mkdir /srv/jekyll
ADD Gemfile /srv/jekyll
WORKDIR /srv/jekyll WORKDIR /srv/jekyll
ADD Gemfile /srv/jekyll/ RUN bundle install
RUN bundle install

View File

@ -6,7 +6,7 @@ services:
container_name: al-folio-website container_name: al-folio-website
command: bash -c " command: bash -c "
rm -f Gemfile.lock rm -f Gemfile.lock
&& bundler exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose" && bundler exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace"
ports: ports:
- 8080:8080 - 8080:8080
volumes: volumes:

View File

@ -3,10 +3,11 @@ version: "3"
services: services:
jekyll_custom: jekyll_custom:
build: . build: .
image: al-folio-local-docker
container_name: al-folio-local-website container_name: al-folio-local-website
command: bash -c " command: bash -c "
rm -f Gemfile.lock rm -f Gemfile.lock
&& bundler exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose" && bundler exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace"
ports: ports:
- 8080:8080 - 8080:8080
volumes: volumes: