Main repository for Devuan's www.devuan.org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
1.1 KiB

# Learn more about the Docker images here:
# https://gitlab.com/paddy-hack/devuan/blob/master/README.md
# Things won't work with ruby 2.5 on beowulf, someone should look into that.
FROM registry.gitlab.com/paddy-hack/devuan:ascii
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential ruby ruby-dev zlib1g-dev libcurl3 pandoc git
RUN gem install rake middleman && gem install bundler
# Pre-install requisites to allow for quick subsequent webpage builds
RUN mkdir -p /devuan-www/src
COPY Gemfile /devuan-www/Gemfile
COPY Gemfile.lock /devuan-www/Gemfile.lock
RUN cd /devuan-www && bundle install --path /devuan-www/vendor/bundle
# If /devuan-www/src/Gemfile does not exist, following repo will be cloned
# You could e.g. mount /devuan-www/src as a docker volume
ENV DEVUAN_WWW_REPO https://git.devuan.org/devuan-editors/devuan-www.git
ENV DEVUAN_WWW_BRANCH master
# Built site will be placed in a `public` subdir
# A build log will be placed in `build.log`
ENV DEVUAN_DIR_OUT /devuan-www/out
COPY docker_init.sh /docker_init.sh
CMD ./docker_init.sh