Skip to content

Commit d2c9de2

Browse files
committed
Remove serve
Signed-off-by: Shunsuke Kimura <[email protected]>
1 parent d3fdd62 commit d2c9de2

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
# Rust v1.77 as a base image
22
FROM rust:1.77-slim
33

4-
RUN apt-get update && \
5-
apt-get install -y --no-install-recommends \
6-
git openssh-client \
7-
curl \
8-
# install python3, jinja2 pyyaml
9-
python3 \
10-
python3-pip \
4+
RUN apt-get update \
5+
&& apt-get install -y --no-install-recommends \
6+
git \
7+
openssh-client \
8+
python3 \
9+
python3-pip \
1110
&& python3 -m pip install --break-system-packages jinja2 PyYAML \
12-
# install nodejs and serve
1311
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
1412
&& apt-get install -y nodejs \
15-
&& npm install -g [email protected] \
1613
&& apt-get clean \
17-
&& rm -rf /var/lib/apt/lists/* \
14+
&& rm -rf /var/lib/apt/lists/*
1815

1916
WORKDIR /workspace
2017
ENV PATH="/root/.cargo/bin:${PATH}"

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"dockerfile": "Dockerfile",
55
"context": ".."
66
},
7-
"forwardPorts": [3000],
87
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
98
"workspaceFolder": "/workspace",
10-
"postStartCommand": "cargo test --package typst-docs --lib -- tests::test_docs --exact --nocapture && python3 ./gen.py && npx serve -n ./dist",
9+
"postStartCommand": "cargo test --package typst-docs --lib -- tests::test_docs --exact --nocapture && python3 ./gen.py && python3 -m http.server -d dist",
1110
"postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}"
1211
}

0 commit comments

Comments
 (0)