Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,7 @@ EOT
FROM scratch AS release
COPY --from=build /project/public /
COPY --from=pagefind /pagefind /pagefind

# nginx is an image containing release compiled assets for static serving
FROM nginx AS nginx
COPY --from=release / /usr/share/nginx/html
10 changes: 10 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ target "release" {
provenance = false
}

target "nginx" {
args = {
HUGO_ENV = "production"
DOCS_URL = "/"
}
target = "nginx"
provenance = false
tags = ["docker/docs:latest"]
}

group "validate" {
targets = ["lint", "test", "unused-media", "test-go-redirects", "dockerfile-lint", "path-warnings"]
}
Expand Down