andrescastro-us commited on
Commit
46f7108
·
1 Parent(s): 19193e8

update branding

Browse files
Core/.devcontainer/devcontainer.json CHANGED
@@ -1,8 +1,6 @@
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-docker-compose
3
  {
4
  "name": "Existing Docker Compose (Extend)",
5
-
6
  // Update the 'dockerComposeFile' list if you have more compose files or use different names.
7
  // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
8
  "dockerComposeFile": [
@@ -10,32 +8,41 @@
10
  "docker-compose.yml"
11
  ],
12
 
13
- // The 'service' property is the name of the service for the container that VS Code should
14
- // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
15
  "service": "app",
16
 
17
- // The optional 'workspaceFolder' property is the path VS Code should open by default when
18
- // connected. This is typically a file mount in .devcontainer/docker-compose.yml
19
- "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
20
 
21
  // Features to add to the dev container. More info: https://containers.dev/features.
22
- // "features": {},
23
 
24
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
25
- // "forwardPorts": [],
26
 
27
- // Uncomment the next line if you want start specific services in your Docker Compose config.
28
- // "runServices": [],
29
 
30
- // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
31
- // "shutdownAction": "none",
32
 
33
- // Uncomment the next line to run commands after the container is created.
34
- // "postCreateCommand": "cat /etc/os-release",
35
 
36
  // Configure tool-specific properties.
37
- // "customizations": {},
 
 
 
 
 
 
 
 
 
 
38
 
39
  // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
40
- // "remoteUser": "devcontainer"
41
  }
 
 
 
1
  {
2
  "name": "Existing Docker Compose (Extend)",
3
+
4
  // Update the 'dockerComposeFile' list if you have more compose files or use different names.
5
  // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
6
  "dockerComposeFile": [
 
8
  "docker-compose.yml"
9
  ],
10
 
11
+ // The 'service' property is the name of the service for the container that VS Code should use.
12
+ // Update this value and .devcontainer/docker-compose.yml to the real service name.
13
  "service": "app",
14
 
15
+ // The optional 'workspaceFolder' property is the path VS Code should open by default when connected.
16
+ "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
 
17
 
18
  // Features to add to the dev container. More info: https://containers.dev/features.
19
+ "features": {},
20
 
21
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
22
+ "forwardPorts": [7860],
23
 
24
+ // Start specific services in your Docker Compose configuration.
25
+ "runServices": ["app"],
26
 
27
+ // Keep your containers running after VS Code shuts down.
28
+ "shutdownAction": "stopCompose",
29
 
30
+ // Run commands after the container is created.
31
+ "postCreateCommand": "chainlit run app.py --host 0.0.0.0 --port 7860 --watch",
32
 
33
  // Configure tool-specific properties.
34
+ "customizations": {
35
+ "vscode": {
36
+ "settings": {
37
+ "python.pythonPath": "/app/.venv/bin/python"
38
+ },
39
+ "extensions": [
40
+ "ms-python.python",
41
+ "ms-python.vscode-pylance"
42
+ ]
43
+ }
44
+ },
45
 
46
  // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
47
+ "remoteUser": "root"
48
  }
Core/Dockerfile CHANGED
@@ -13,8 +13,8 @@ ENV POETRY_NO_INTERACTION=1 \
13
  POETRY_CACHE_DIR=/tmp/poetry_cache
14
 
15
  ENV HOST=0.0.0.0
16
- ENV LISTEN_PORT 8000
17
- EXPOSE 8000
18
 
19
  WORKDIR /app
20
 
@@ -24,7 +24,7 @@ COPY pyproject.toml poetry.lock ./
24
  RUN poetry install --no-dev --no-root && rm -rf $POETRY_CACHE_DIR
25
 
26
  # Copy the application code
27
- COPY core /app/core
28
 
29
  # The runtime image, used to just run the code provided its virtual environment
30
  FROM python:3.11-slim-buster as runtime
@@ -37,7 +37,7 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
37
  # Copy the application code from the builder stage
38
  COPY --from=builder /app /app
39
 
40
- WORKDIR /app/core
41
 
42
- CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]
43
 
 
13
  POETRY_CACHE_DIR=/tmp/poetry_cache
14
 
15
  ENV HOST=0.0.0.0
16
+ ENV LISTEN_PORT 7860
17
+ EXPOSE 7860
18
 
19
  WORKDIR /app
20
 
 
24
  RUN poetry install --no-dev --no-root && rm -rf $POETRY_CACHE_DIR
25
 
26
  # Copy the application code
27
+ COPY core /app
28
 
29
  # The runtime image, used to just run the code provided its virtual environment
30
  FROM python:3.11-slim-buster as runtime
 
37
  # Copy the application code from the builder stage
38
  COPY --from=builder /app /app
39
 
40
+ WORKDIR /app
41
 
42
+ CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860", "--watch"]
43
 
Core/{core/app.py → app.py} RENAMED
File without changes
Core/docker-compose.yml CHANGED
@@ -6,7 +6,7 @@ services:
6
  context: .
7
  dockerfile: Dockerfile
8
  ports:
9
- - "8000:8000"
10
  environment:
11
  - HOST=0.0.0.0
12
- - LISTEN_PORT=8000
 
6
  context: .
7
  dockerfile: Dockerfile
8
  ports:
9
+ - "7860:7860"
10
  environment:
11
  - HOST=0.0.0.0
12
+ - LISTEN_PORT=7860
Core/public/android-chrome-192x192.png ADDED
Core/public/android-chrome-512x512.png ADDED
Core/public/apple-touch-icon.png ADDED
Core/public/favicon-16x16.png ADDED
Core/public/favicon-32x32.png ADDED
Core/public/favicon.ico ADDED
Core/public/logo_dark.png ADDED
Core/public/logo_light.png ADDED