Updated docker file to use hugo 0.121.1 and updated compose file to use
gitlab instead of nonexistent docker registry
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ FROM alpine as Builder
|
|||||||
RUN apk add --update curl git
|
RUN apk add --update curl git
|
||||||
|
|
||||||
# download and unnzip the hugo binary then place it in /usr/local/bin
|
# 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
|
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_0.121.1_linux-arm64.tar.gz > hugo.tar.gz && tar -zxf hugo.tar.gz && mv hugo /usr/local/bin
|
||||||
|
|
||||||
# clone the blog repository as well as the theme submodule
|
# clone the blog repository as well as the theme submodule
|
||||||
RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
|
RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
|
||||||
@@ -17,7 +17,7 @@ WORKDIR blog
|
|||||||
RUN hugo --minify --gc
|
RUN hugo --minify --gc
|
||||||
|
|
||||||
|
|
||||||
# Nginx image is as basic as we can get
|
# Nginx image is as basic as we can get without introducing further complexity
|
||||||
FROM nginx
|
FROM nginx
|
||||||
|
|
||||||
# copy the nginx.conf file
|
# copy the nginx.conf file
|
||||||
|
|||||||
+1
-1
@@ -2,6 +2,6 @@ version: "3"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: dockeregistry.ahmza.com/blog:latest
|
image: registry.gitlab.com/ahmza/blog:1.2.0
|
||||||
ports:
|
ports:
|
||||||
- 8081:80
|
- 8081:80
|
||||||
|
|||||||
Reference in New Issue
Block a user