Update container environment to use Hugo's own images.
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user