GitHub Actions commited on
Commit
453bf9b
·
1 Parent(s): 24562bb

Update from GitHub

Browse files
Files changed (2) hide show
  1. Dockerfile +14 -11
  2. hp-solanaceae +1 -1
Dockerfile CHANGED
@@ -1,21 +1,12 @@
1
  # GBIF dockerfile
2
  FROM jekyll/jekyll:4.1.0
3
 
4
- # Suggested for huggingface spaces deployment
5
- # Copy your Jekyll site into the container
6
- WORKDIR /site
7
- COPY . .
8
-
9
  # GBIF dockerfile
10
  RUN gem sources --add https://repository.gbif.org/repository/rubygems.org/ && \
11
  gem sources --remove https://rubygems.org/ && \
12
  /usr/local/bin/bundle config set mirror.https://rubygems.org https://repository.gbif.org/repository/rubygems.org && \
13
  su-exec jekyll /usr/local/bin/bundle config set mirror.https://rubygems.org https://repository.gbif.org/repository/rubygems.org
14
 
15
- # GBIF dockerfile
16
- # RUN mv /bin/chown /chown
17
- # COPY ["do-nothing", "/bin/chown"]
18
-
19
  # GBIF dockerfile
20
  ENV JEKYLL_UID=0 \
21
  JEKYLL_GID=0 \
@@ -30,11 +21,23 @@ RUN apk --no-cache add curl && \
30
  /usr/local/bin/bundle install
31
 
32
  # Suggested for huggingface spaces deployment
33
-
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  # Install dependencies (if using Bundler)
35
  RUN bundle install
36
 
37
- # Build the site (outputs to /site/_site)
38
  RUN jekyll build
39
 
40
  # Use a lightweight web server to serve the static files
 
1
  # GBIF dockerfile
2
  FROM jekyll/jekyll:4.1.0
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 \
 
21
  /usr/local/bin/bundle install
22
 
23
  # Suggested for huggingface spaces deployment
24
+ # Copy your Jekyll site into the container
25
+ WORKDIR /site
26
+ COPY . .
27
+
28
+ # Create the site directory and set permissions
29
+ RUN mkdir -p /site && chown -R jekyll:jekyll /site
30
+
31
+ # Switch to the jekyll user (avoid root issues)
32
+ USER jekyll
33
+
34
+ # Copy files and build
35
+ WORKDIR /site
36
+ COPY --chown=jekyll:jekyll . .
37
+
38
  # Install dependencies (if using Bundler)
39
  RUN bundle install
40
 
 
41
  RUN jekyll build
42
 
43
  # Use a lightweight web server to serve the static files
hp-solanaceae CHANGED
@@ -1 +1 @@
1
- Subproject commit 497c668ed7d1ce67303334bc4d301315f7e4c4c0
 
1
+ Subproject commit 24562bb09021b8e39d43fccdf576feb38e4bb4c2