Files
marktaguiad.dev/Dockerfile
mcbtaguiad ec77f4121f
Some checks failed
Build and Push Docker Image / build (push) Failing after 31s
test
2026-01-19 21:31:03 +08:00

30 lines
462 B
Docker
Executable File

FROM docker.io/ubuntu:22.04 as builder
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y hugo
WORKDIR /site
COPY ./app/ .
RUN hugo
FROM docker.io/nginx:1.25.5-bookworm
WORKDIR /app
COPY --from=builder /site/public/ .
COPY ./nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
# FROM docker.io/httpd:latest
# COPY --from=builder /srv/jekyll/_site/ /usr/local/apache2/htdocs/
# COPY --from=builder /site/public/* /usr/local/apache2/htdocs/