You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `online_log/app.py` with the relative path to your Python application's entry point.
139
+
- `chatdev` with a name that you want to give to your Docker image.
140
+
141
+
- Test the image:
142
+
```commandline
143
+
docker run -itp 8000:8000 chatdev:latest
144
+
```
145
+
Ensure you replace `chatdev` with the name you used when building the image.
146
+
131
147
### Official Docker Image
132
148
- in preparation
133
149
@@ -138,12 +154,12 @@ To run your ChatDev application with Docker Compose, simply:
138
154
1. Find the `.env.sample` file in the root directory of your ChatDev project.
139
155
2. Copy this file and rename it to `.env`.
140
156
3. Open the `.env` file with the text editor of your choice.
141
-
4. Replace `<Your OpenAI API Key>` with your actual OpenAI API key from OpenAI.
157
+
4. Replace `<Your OpenAI API Key>` with your actual OpenAI API key from OpenAI. Add other environment variables for local development as needed.
142
158
5. Initiate the application by running:
143
159
```commandline
144
-
docker compose up
160
+
docker compose run --service-ports chatdev
145
161
```
146
-
This command will build the Docker image (if necessary) and start the container. By default, it runs the `online_log/app`.py file.
162
+
This command will build the Docker image (if necessary) and start the container.
147
163
148
164
Any changes you make to the project files on your host machine will sync in real-time inside the container, thanks to the configured bind mount in `docker-compose.yml`.
0 commit comments