Skip to content

Commit b8b7725

Browse files
committed
Add devcontainer
1 parent 2adb536 commit b8b7725

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM dock.mau.dev/maubot/maubot
2+
3+
COPY ../requirements.txt /mensabot/requirements.txt
4+
RUN pip install -r /mensabot/requirements.txt --break-system-packages

.devcontainer/devcontainer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
3+
{
4+
"name": "Existing Dockerfile",
5+
"build": {
6+
// Sets the run context to one level up instead of the .devcontainer folder.
7+
"context": "..",
8+
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
9+
"dockerfile": "./Dockerfile"
10+
},
11+
12+
// Features to add to the dev container. More info: https://containers.dev/features.
13+
// "features": {},
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
18+
// Uncomment the next line to run commands after the container is created.
19+
// "postCreateCommand": "cat /etc/os-release",
20+
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
"vscode": {
24+
"settings": {},
25+
"extensions": [
26+
"ms-python.python"
27+
]
28+
}
29+
}
30+
31+
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
32+
// "remoteUser": "devcontainer"
33+
}

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python Debugger: Module",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"module": "ovgumensabot.parser"
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)