Skip to content

Commit

Permalink
[Fix] 🐛 CodeSandbox Use Build Cache when Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Apr 14, 2024
1 parent 3da7111 commit 2504ee0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"supervisor": {
"name": "supervisor",
"command": "/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisor.conf",
"runAtStart": true
},
// "supervisor": {
// "name": "supervisor",
// "command": "/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisor.conf",
// "runAtStart": true
// },
"cloudflared": {
"name": "cloudflared",
"command": "/app/cloudflared tunnel --no-autoupdate run --token $CF_ZERO_TRUST_TOKEN",
Expand Down
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Go Proxy BingAI",
"build": {
"dockerfile": "./Dockerfile"
}
"dockerComposeFile": "docker-compose.yml",
"service": "go-proxy-bingai",
"workspaceFolder": "/app"
}
13 changes: 13 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
go-proxy-bingai:
build:
context: .
dockerfile: Dockerfile
no_cache: true
environment:
- HEADLESS=false
- PASS_TIMEOUT=5
ports:
- 8080:8080
- 45678:45678
- 9005:9005

0 comments on commit 2504ee0

Please sign in to comment.