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 15, 2024
1 parent 3da7111 commit 05d2a28
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ RUN rm go-bingai-pass-linux-amd64.tar.gz go-proxy-bingai-linux-amd64.tar.gz

COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf

EXPOSE 8080 45678 9005
EXPOSE 8080 45678 9005

CMD [ "/usr/bin/bash", "-c", "while true;do sleep 3600;done" ]
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 05d2a28

Please sign in to comment.