Update container environment to use Hugo's own images.

This commit is contained in:
2026-05-15 17:40:27 +02:00
parent 98b97e1667
commit 6b7a615ff8
3 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -16,7 +16,7 @@
// The optional 'workspaceFolder' property is the path VS Code should open by default when // The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml // connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/src" "workspaceFolder": "/project",
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
// "features": {}, // "features": {},
@@ -37,5 +37,5 @@
// "customizations": {}, // "customizations": {},
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer" "remoteUser": "root"
} }
+1 -1
View File
@@ -13,7 +13,7 @@ services:
volumes: volumes:
# Update this to wherever you want VS Code to mount the folder of your project # Update this to wherever you want VS Code to mount the folder of your project
# - ..:/src:cached # - ..:/project:cached
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
# cap_add: # cap_add:
+11 -7
View File
@@ -1,17 +1,21 @@
services: services:
build: build:
image: hugomods/hugo:ci # image: hugomods/hugo:ci
command: hugo image: ghcr.io/gohugoio/hugo
command: build
volumes: volumes:
- ".:/src" - ".:/project"
user: 1000:1000 user: 1000:1000
server: server:
image: hugomods/hugo:ci # image: hugomods/hugo:exts
command: server --buildDrafts --buildFuture image: ghcr.io/gohugoio/hugo
command: server --bind 0.0.0.0 --buildDrafts --buildFuture
volumes: volumes:
- ".:/src" # - ".:/src"
- ".:/project"
ports: ports:
- "127.0.0.1:1313:1313" - "127.0.0.1:1313:1313"
user: 1000:1000 user: 1000:1000
environment: environment:
- TZ=Europe/Berlin ENVIRONMENT: development
TZ: Europe/Berlin