Nicky Nicolson commited on
Commit
bfc8654
·
1 Parent(s): 7b0ed6c

add gbif deps

Browse files
Files changed (2) hide show
  1. Dockerfile +23 -1
  2. _config.yml +5 -3
Dockerfile CHANGED
@@ -1,7 +1,29 @@
1
  # Muitistage Dockerfile to first build the static site, then using nginx serve the static site
2
  FROM ruby:3.4.3 as builder
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  WORKDIR /usr/src/app
4
- COPY Gemfile ./
 
5
  RUN bundle install
6
  COPY . .
7
  RUN bundle exec jekyll build
 
1
  # Muitistage Dockerfile to first build the static site, then using nginx serve the static site
2
  FROM ruby:3.4.3 as builder
3
+
4
+ # GBIF dockerfile
5
+ RUN gem sources --add https://repository.gbif.org/repository/rubygems.org/ && \
6
+ gem sources --remove https://rubygems.org/ && \
7
+ /usr/local/bin/bundle config set mirror.https://rubygems.org https://repository.gbif.org/repository/rubygems.org && \
8
+ su-exec jekyll /usr/local/bin/bundle config set mirror.https://rubygems.org https://repository.gbif.org/repository/rubygems.org
9
+
10
+ # GBIF dockerfile
11
+ ENV JEKYLL_UID=0 \
12
+ JEKYLL_GID=0 \
13
+ JEKYLL_ROOTLESS=1 \
14
+ TZ=UTC
15
+
16
+ # GBIF dockerfile
17
+ RUN apk --no-cache add curl && \
18
+ curl -Ss --output-dir /usr/src/app/ --remote-name --fail https://raw.githubusercontent.com/gbif/hp-template/master/Gemfile && \
19
+ curl -Ss --output-dir /usr/src/app/ --remote-name --fail https://raw.githubusercontent.com/gbif/hp-template/master/Gemfile.lock && \
20
+ /usr/local/bin/bundle config set frozen true && \
21
+ /usr/local/bin/bundle install
22
+
23
+
24
  WORKDIR /usr/src/app
25
+ # COPY Gemfile ./
26
+ RUN bundle config set frozen true
27
  RUN bundle install
28
  COPY . .
29
  RUN bundle exec jekyll build
_config.yml CHANGED
@@ -1,4 +1,6 @@
1
- theme: jekyll-theme-architect
2
-
3
  plugins:
4
- - jekyll-sitemap
 
 
 
 
1
+ theme: minima
 
2
  plugins:
3
+ - jekyll-feed
4
+ - jekyll-remote-theme
5
+
6
+ remote_theme: gbif/jekyll-hp-base-theme