blog

New Page is generated via Hugo from jenkins and running inside a Dockerfile.

Dockerfile was even created with chatgpt (which resulted in a smaller/better Dockerfile than some random pages)

Hugo Toolkit: https://gohugo.io/

Used Template: https://github.com/zerostaticthemes/hugo-hero-theme

see Dockerfile that is used. (and generated via chatGPT)


# Stage 1: Build the Hugo site
FROM golang:alpine AS build

# Install Hugo
RUN apk add --no-cache hugo

# Copy the Hugo site source code into the container
COPY . /src

# Generate the site using Hugo
WORKDIR /src
RUN hugo --minify

# Stage 2: Serve the Hugo site using Nginx
FROM nginx:alpine

# Copy the generated Hugo site from the previous stage
COPY --from=build /src/public /usr/share/nginx/html

# Expose port 80 for Nginx
EXPOSE 80

# Start Nginx and serve the site
CMD ["nginx", "-g", "daemon off;"]

as i’m also lazy and bad to write nice texts for the webpage i let chatgpt do most of the work.