Added Dev Container

This commit is contained in:
Valentin Popov 2024-07-09 19:27:35 +00:00
parent 266747bae5
commit 2b3e41a4ab
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
3 changed files with 29 additions and 0 deletions

14
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM mcr.microsoft.com/devcontainers/base:bookworm
RUN apt-get update && apt-get install -y \
curl \
tar \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV ZOLA_VERSION=0.19.1
RUN curl -L https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz -o zola.tar.gz \
&& tar -xzf zola.tar.gz \
&& mv zola /bin/zola \
&& rm zola.tar.gz

View File

@ -0,0 +1,15 @@
{
"name": "Zola Dev Container",
"build": {
"dockerfile": "Dockerfile"
},
"forwardPorts": [
1111
],
"portsAttributes": {
"1111": {
"label": "Application",
"onAutoForward": "notify"
}
}
}