Skip to content

Commit cccae3a

Browse files
author
Guilhem Bonnefille
committed
chore: initiate a devcontainer
Easier to create a temporary workspace.
1 parent 6e59a9d commit cccae3a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.devcontainer/Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM mcr.microsoft.com/devcontainers/python:3.9
2+
3+
# Install system dependencies
4+
RUN apt-get update && apt-get install -y \
5+
build-essential \
6+
python3-pip \
7+
twine \
8+
git \
9+
&& apt-get clean
10+
11+
RUN pip install pytest

.devcontainer/devcontainer.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "Pesto Dev Container",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"settings": {
7+
"python.pythonPath": "/usr/local/bin/python"
8+
},
9+
"extensions": [
10+
"ms-python.python",
11+
"ms-python.vscode-pylance"
12+
],
13+
"remoteUser": "vscode",
14+
"postAttachCommand": "sudo chown -R vscode /workspaces"
15+
}

0 commit comments

Comments
 (0)