Skip to content

Commit b620d0d

Browse files
committed
dev: setup devcontainer
1 parent da4f8c0 commit b620d0d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/ruby/.devcontainer/base.Dockerfile
2+
3+
ARG VARIANT="3.4-bullseye"
4+
FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT}
5+
6+
ARG NODE_VERSION="22"
7+
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"
8+
9+
# [Optional] Uncomment this section to install additional OS packages.
10+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
11+
&& apt-get -y install --no-install-recommends \
12+
make
13+
14+
# [Optional] Uncomment this line to install additional gems.
15+
# RUN gem install <your-gem-names-here>

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Jekyll",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"forwardPorts": [4000],
7+
"postCreateCommand": "make setup",
8+
"postStartCommand": "make serve",
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"sissel.shopify-liquid",
13+
"esbenp.prettier-vscode",
14+
"ms-vscode.makefile-tools"
15+
]
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)