Hansimov commited on
Commit
dd0dbb2
1 Parent(s): 043f00b

:gem: [Feature] Codesandbox: Tasks configs

Browse files
.codesandbox/tasks.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // These tasks will run in order when initializing your CodeSandbox project.
3
+ "setupTasks": [
4
+ {
5
+ "name": "Installing Dependencies",
6
+ "command": "pip install -r requirements.txt"
7
+ }
8
+ ],
9
+
10
+ // These tasks can be run from CodeSandbox. Running one will open a log in the app.
11
+ "tasks": {
12
+ "run-api-service": {
13
+ "name": "Run API Service",
14
+ "command": "python -m apis.chat_api",
15
+ "runAtStart": true,
16
+ "preview": {
17
+ "port": 22222
18
+ }
19
+ }
20
+ }
21
+ }
.devcontainer/devcontainer.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/python
3
+ {
4
+ "name": "Python 3",
5
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+ "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye"
7
+
8
+ // Features to add to the dev container. More info: https://containers.dev/features.
9
+ // "features": {},
10
+
11
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
12
+ // "forwardPorts": [],
13
+
14
+ // Use 'postCreateCommand' to run commands after the container is created.
15
+ // "postCreateCommand": "pip3 install --user -r requirements.txt",
16
+
17
+ // Configure tool-specific properties.
18
+ // "customizations": {},
19
+
20
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21
+ // "remoteUser": "root"
22
+ }