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.
 
 
 
 
 

31 lines
1.1 KiB

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