Install the prerequisites: yarn and docker.
Install TailwindCSS.
yarn installCompile the styles.
NODE_ENV=production yarn run tailwindcss build style.css -o static/style.cssBuild the docker container containing zola:
docker build -t zola .Run a zola server to serve the website during development:
docker run --rm --name frecency.com\
-v $(pwd)/config.toml:/app/config.toml\
-v $(pwd)/content:/app/content\
-v $(pwd)/static:/app/static\
-v $(pwd)/templates:/app/templates\
--publish 1111:1111 zola serve --interface 0.0.0.0Build the website for publishing:
docker run --rm\
-v $(pwd)/config.toml:/app/config.toml\
-v $(pwd)/content:/app/content\
-v $(pwd)/dist:/app/dist\
-v $(pwd)/static:/app/static\
-v $(pwd)/templates:/app/templates\
zola build --output-dir dist/publicDeploy the website to S3:
aws s3 cp --recursive dist/public/ s3://frecency.com/