Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Appearance

Jekyll

Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites.

Deploy with Nixpacks

Nixpacks needs a few prerequisites in your source code to deploy your Jekyll application. More infohere.

Deploy with Dockerfile

If you want simplicity, you can use a Dockerfile to deploy your Jekyll application.

Prerequisites

  1. SetPorts Exposes field to80.
  2. Create aDockerfile in the root of your project with the following content:
Dockerfile
FROM ruby:3.1.1AS builderRUN apt-get update -qq && apt-get install -y build-essential nodejsWORKDIR /srv/jekyllCOPY Gemfile Gemfile.lock ./RUN bundle installCOPY . .RUN chown 1000:1000 -R /srv/jekyllRUN bundle exec jekyll build -d /srv/jekyll/_siteFROM nginx:alpineCOPY --from=builder /srv/jekyll/_site /usr/share/nginx/htmlEXPOSE 80CMD ["nginx","-g","daemon off;"]
  1. Make sure you have aGemfile andGemfile.lock in the root of your project.
  2. Set the buildpack toDockerfile.

[8]ページ先頭

©2009-2025 Movatter.jp