-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<title>404 Not Found</title> | ||
<h1>404 Not Found</h1> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
www.getzola.org |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<link rel="canonical" href="https://www.getzola.org/documentation/content/overview/"> | ||
<meta http-equiv="refresh" content="0; url=https://www.getzola.org/documentation/content/overview/"> | ||
<title>Redirect</title> | ||
<p><a href="https://www.getzola.org/documentation/content/overview/">Click here</a> to be redirected.</p> |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-gb"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="Everything you need to make a static site engine in one binary."> | ||
<meta name="author" content="Vincent Prouillet"> | ||
<title>Docker image | Zola </title> | ||
<link rel="stylesheet" href="https://www.getzola.org/site.css"> | ||
<link rel="icon" href="https://www.getzola.org/favicon.ico"> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<a class="header__logo white" href="https://www.getzola.org/">Zola</a> | ||
<nav> | ||
<ul> | ||
<li><a class="white" href="https://www.getzola.org/documentation/" class="nav-link">Docs</a></li> | ||
<li><a class="white" href="https://www.getzola.org/themes/" class="nav-link">Themes</a></li> | ||
<li><a class="white" href="https://zola.discourse.group/" class="nav-link">Forum</a></li> | ||
<li><a class="white" href="https://github.com/getzola/zola" class="nav-link">GitHub</a></li> | ||
</ul> | ||
<div class="search-container"> | ||
<input id="search" type="search" placeholder="🔎 Search the docs"> | ||
|
||
<div class="search-results"> | ||
<div class="search-results__items"></div> | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
|
||
<div class="content content--reversed"> | ||
|
||
|
||
<div class="documentation"> | ||
<aside class="documentation__sidebar"> | ||
<ul> | ||
|
||
|
||
<li> | ||
<span class="documentation__sidebar__title">Getting Started</span> | ||
<ul> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/getting-started/overview/">Overview</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/getting-started/installation/">Installation</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/getting-started/cli-usage/">CLI usage</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/getting-started/directory-structure/">Directory structure</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/getting-started/configuration/">Configuration</a> | ||
</li> | ||
|
||
</ul> | ||
</li> | ||
|
||
|
||
<li> | ||
<span class="documentation__sidebar__title">Content</span> | ||
<ul> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/overview/">Overview</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/section/">Section</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/page/">Page</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/shortcodes/">Shortcodes</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/linking/">Internal links & deep linking</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/table-of-contents/">Table of Contents</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/syntax-highlighting/">Syntax Highlighting</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/taxonomies/">Taxonomies</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/search/">Search</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/sass/">Sass</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/image-processing/">Image processing</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/content/multilingual/">Multilingual sites</a> | ||
</li> | ||
|
||
</ul> | ||
</li> | ||
|
||
|
||
<li> | ||
<span class="documentation__sidebar__title">Templates</span> | ||
<ul> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/overview/">Overview</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/pages-sections/">Sections and Pages</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/pagination/">Pagination</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/taxonomies/">Taxonomies</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/feeds/">Feeds</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/sitemap/">Sitemap</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/robots/">Robots.txt</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/404/">404 error page</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/templates/archive/">Archive</a> | ||
</li> | ||
|
||
</ul> | ||
</li> | ||
|
||
|
||
<li> | ||
<span class="documentation__sidebar__title">Themes</span> | ||
<ul> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/themes/overview/">Overview</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/themes/installing-and-using-themes/">Installing & using themes</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/themes/creating-a-theme/">Creating a theme</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/themes/extending-a-theme/">Customizing a theme</a> | ||
</li> | ||
|
||
</ul> | ||
</li> | ||
|
||
|
||
<li> | ||
<span class="documentation__sidebar__title">Deployment</span> | ||
<ul> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/overview/">Overview</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/sourcehut/">Sourcehut Pages</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/netlify/">Netlify</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/github-pages/">GitHub Pages</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/gitlab-pages/">GitLab Pages</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/codeberg-pages/">Codeberg Pages</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/edgio/">Edgio</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/vercel/">Vercel</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/zeabur/">Zeabur</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/cloudflare-pages/">Cloudflare Pages</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/flyio/">Fly.io</a> | ||
</li> | ||
|
||
<li class=""> | ||
<a href="https://www.getzola.org/documentation/deployment/aws-s3/">AWS S3 Bucket</a> | ||
</li> | ||
|
||
<li class="active"> | ||
<a href="https://www.getzola.org/documentation/deployment/docker-image/">Docker image</a> | ||
</li> | ||
|
||
</ul> | ||
</li> | ||
|
||
</ul> | ||
</aside> | ||
<div class="documentation__content"> | ||
|
||
<h1>Docker image</h1> | ||
<p>If you have to distribute a Zola based web site through Docker, it's easy to do with a multi-stage build.</p> | ||
<p>Here is an example that builds the current folder, and put the result in a docker image that will be served by | ||
<a href="https://static-web-server.net/">static-web-server</a>, a minimalist web server written in rust.</p> | ||
<p>Of course, you may want to replace the second stage with another static web server like Nginx or Apache.</p> | ||
<pre data-lang="Dockerfile" style="background-color:#383838;color:#e6e1dc;" class="language-Dockerfile "><code class="language-Dockerfile" data-lang="Dockerfile"><span style="color:#cc7833;">FROM</span><span> ghcr.io/getzola/zola:v0.17.1 </span><span style="color:#cc7833;">as </span><span>zola | ||
</span><span> | ||
</span><span style="color:#cc7833;">COPY</span><span> . /project | ||
</span><span style="color:#cc7833;">WORKDIR </span><span>/project | ||
</span><span style="color:#cc7833;">RUN </span><span>[</span><span style="color:#c1be91;">"zola"</span><span>, </span><span style="color:#c1be91;">"build"</span><span>] | ||
</span><span> | ||
</span><span style="color:#cc7833;">FROM</span><span> ghcr.io/static-web-server/static-web-server:2 | ||
</span><span style="color:#cc7833;">WORKDIR </span><span>/ | ||
</span><span style="color:#cc7833;">COPY</span><span> --from=zola /project/public /public | ||
</span></code></pre> | ||
<p>To build your website as a docker image, you then run:</p> | ||
<pre data-lang="shell" style="background-color:#383838;color:#e6e1dc;" class="language-shell "><code class="language-shell" data-lang="shell"><span>docker build -t my_website:latest . | ||
</span></code></pre> | ||
<p>To test your site, just run the docker image and browse <a href="http://localhost:8000">http://localhost:8000</a></p> | ||
<pre style="background-color:#383838;color:#e6e1dc;"><code><span>docker run --rm -p 8000:80 my_website:latest | ||
</span></code></pre> | ||
<p>Note that, if you want to be able to use your docker image from multiple locations, you'll have to set <code>base_url</code> to <code>/</code>.</p> | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
<footer> | ||
©2017-2024 — <a class="white" href="https://www.vincentprouillet.com">Vincent Prouillet</a> and <a class="white" href="https://github.com/getzola/zola/graphs/contributors">contributors</a> | ||
</footer> | ||
|
||
<script type="text/javascript" src="https://www.getzola.org/elasticlunr.min.js"></script> | ||
<script type="text/javascript" src="https://www.getzola.org/search.js"></script> | ||
</body> | ||
</html> |