removed tinacms, more headache then its worth. Easier to manually create files xD
This commit is contained in:
+3
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user