add .gitignore, remove .DS_Store, change to busybox webserver
Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run

This commit is contained in:
2025-03-14 17:47:32 +01:00
parent 264bbed262
commit eb66bb46a7
8 changed files with 11 additions and 53 deletions

View File

@@ -1,13 +1,13 @@
# Compile the hugo site
FROM ubuntu:latest AS builder
RUN apt-get update && apt-get install -y hugo
COPY ./hugo /app
RUN hugo -s /app
FROM klakegg/hugo:ext-alpine AS builder
WORKDIR /app
COPY ./hugo .
RUN hugo --minify --destination /output
# Setup deployment
FROM nginx:alpine AS final
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=0 /var/www/rezepte /var/www
FROM alpine:latest
WORKDIR /www
COPY --from=builder /output /www
RUN apk add --no-cache busybox-extras
EXPOSE 80
CMD ["httpd", "-f", "-p", "80", "-h", "/www"]