# Stage 1 - build
FROM node:20-alpine AS builder
WORKDIR /hexo
RUN apk add --no-cache git
RUN npm install -g hexo-cli
RUN hexo init . && npm install
RUN rm -rf source/* scaffolds themes/landscape
Dockerfile-2
6 weeks ago
# Stage 1 - build
FROM node:20-alpine AS builder
WORKDIR /hexo
RUN apk add --no-cache git
RUN npm install -g hexo-cli
RUN hexo init . && npm install
# Clean up default files
RUN rm -rf source/* sc Dockerfile
6 weeks ago
title: A Collection of Things
author: Rick
language: en
theme: flux-palette
menu:
Home: /
Projects: /projects/
Search: /search/
home:
mode: projects
blog:
title: "Posts"
projects:
titl _config.yml
6 weeks ago
#!/usr/bin/bash
set -euo pipefail
proj="${1%/}"
repodir="/home/git/$proj.git"
# ─── If it already exists, bail ───
if [[ -d "$repodir" ]]; then
echo "$proj.git already exists"
echo " git cl newrepo
8 weeks ago