add basic thingies
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Build and Publish Docker Image / build (push) Successful in 21s

This commit is contained in:
2026-05-13 21:33:49 +00:00
parent 6d3b6b8568
commit f7de33381d
39 changed files with 719 additions and 2 deletions

View File

@@ -1,2 +1,25 @@
FROM alpine
CMD ["echo", "Hello World!!"]
# Stage 1
FROM alpine:latest AS build
# Install the Hugo go app.
RUN apk add --update hugo
WORKDIR /opt/HugoApp
# Copy Hugo config into the container Workdir.
COPY . .
# Run Hugo in the Workdir to generate HTML.
RUN hugo
# Stage 2
FROM nginx:1.25-alpine
# Set workdir to the NGINX default dir.
WORKDIR /usr/share/nginx/html
# Copy HTML from previous build into the Workdir.
COPY --from=build /opt/HugoApp/public .
# Expose port 80
EXPOSE 80/tcp