Nicky Nicolson commited on
Commit
07fb169
·
1 Parent(s): bfc8654

Mod setup gbif mirror

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -3,9 +3,9 @@ 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 \
@@ -16,10 +16,7 @@ ENV JEKYLL_UID=0 \
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 ./
 
3
 
4
  # GBIF dockerfile
5
  RUN gem sources --add https://repository.gbif.org/repository/rubygems.org/ && \
6
+ gem sources --remove https://rubygems.org/
7
+
8
+ RUN bundle config set mirror.https://rubygems.org https://repository.gbif.org/repository/rubygems.org
9
 
10
  # GBIF dockerfile
11
  ENV JEKYLL_UID=0 \
 
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
 
21
  WORKDIR /usr/src/app
22
  # COPY Gemfile ./