repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
87557bd
parent
befe10e
author
Eric Bower
date
2023-06-19 13:29:27 +0000 UTC
multistage build docker
1 files changed,  +8, -2
M Dockerfile
+8, -2
 1@@ -1,3 +1,9 @@
 2-FROM nginx
 3-COPY ./public /usr/share/nginx/html
 4+FROM golang:1.20 as builder
 5+COPY . /app
 6+WORKDIR /app
 7+RUN go build -o pgit ./main.go
 8+RUN ./pgit
 9+
10+FROM nginx:latest
11+COPY --from=builder /app/public /usr/share/nginx/html
12 EXPOSE 80