removed tinacms, more headache then its worth. Easier to manually create files xD

This commit is contained in:
Hamza Ahmed
2023-11-16 19:25:04 +00:00
parent 867a05d76e
commit d112021b62
15 changed files with 3 additions and 13656 deletions
+3 -6
View File
@@ -2,7 +2,7 @@
FROM alpine as Builder
# install curl and git
RUN apk add --update curl git npm
RUN apk add --update curl git
# download and unnzip the hugo binary then place it in /usr/local/bin
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.120.3/hugo_0.120.3_linux-arm64.tar.gz > hugo.tar.gz && tar -zxf hugo.tar.gz && mv hugo /usr/local/bin
@@ -13,11 +13,8 @@ RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
# set blog (the folder we just cloned) as the current DIR
WORKDIR blog
# install tinacli
RUN npm install @tinacms/cli
# build Tina and generate minifed hugo files
RUN npx @tinacms/cli@latest build && hugo --minify
# run hugo --minify to generate static files
hugo --minify
# Nginx image is as basic as we can get