Skip to content

Commit 2486f24

Browse files
Devcontainer updates
1 parent 3a3aff1 commit 2486f24

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.devcontainer/Dockerfile

-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,5 @@ RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hug
1515
dpkg -i hugo_extended_${HUGO_VERSION}_linux-amd64.deb && \
1616
rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb
1717

18-
RUN mkdir -p /site
19-
20-
WORKDIR /site
21-
2218
ENV HUGO_CACHEDIR=/cache
2319
ENV PATH="/var/hugo/bin:$PATH"

.devcontainer/devcontainer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
},
1111
"extensions": [
1212
"ms-azuretools.vscode-docker",
13-
"vscode.git",
14-
"golang.go"
13+
"vscode.git"
1514
]
1615
}
1716
},
1817
"forwardPorts": [1313],
19-
"postCreateCommand": "git submodule update --init --recursive && sudo hugo server --bind 0.0.0.0 --disableFastRender"
18+
"postCreateCommand": "git submodule update --init --recursive"
2019
}

.vscode/tasks.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run Hugo Server",
6+
"type": "shell",
7+
"command": "cd site && sudo hugo server --bind 0.0.0.0 --disableFastRender",
8+
"problemMatcher": [],
9+
"isBackground": true
10+
}
11+
]
12+
}

site/content/posts/introduction/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ aliases = ["/building"]
1717
# Test
1818

1919
Test
20+
21+
Test in codespaces number 2

0 commit comments

Comments
 (0)