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:
Hamza Ahmed
2024-01-04 19:38:50 +00:00
parent bde3a4f448
commit 416a99f810
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ FROM alpine as Builder
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
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
RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
@@ -17,7 +17,7 @@ WORKDIR blog
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
# copy the nginx.conf file
+1 -1
View File
@@ -2,6 +2,6 @@ version: "3"
services:
app:
image: dockeregistry.ahmza.com/blog:latest
image: registry.gitlab.com/ahmza/blog:1.2.0
ports:
- 8081:80