davanstrien HF Staff commited on
Commit
344f184
·
1 Parent(s): 4ad2478

Add dictionary application files and update Dockerfile for proper structure

Browse files
Dockerfile CHANGED
@@ -21,11 +21,12 @@ RUN uv venv .venv
21
 
22
  # Copy requirements and install Python dependencies into the venv
23
  COPY requirements.txt .
24
- COPY dictionary.py .
25
- COPY dictionary.tcss .
26
  RUN uv pip install -r requirements.txt
27
 
28
- # Copy application files
 
 
 
29
  COPY serve.py .
30
 
31
  # Activate the virtual environment by putting it in PATH
 
21
 
22
  # Copy requirements and install Python dependencies into the venv
23
  COPY requirements.txt .
 
 
24
  RUN uv pip install -r requirements.txt
25
 
26
+ # Copy the entire textual-app directory containing all app files
27
+ COPY textual-app/ ./textual-app/
28
+
29
+ # Copy the main server file
30
  COPY serve.py .
31
 
32
  # Activate the virtual environment by putting it in PATH
serve.py CHANGED
@@ -17,10 +17,10 @@ else:
17
  print(f"Using public_url: {public_url}")
18
 
19
  server = Server(
20
- "python dictionary.py",
21
  host="0.0.0.0",
22
  port=7860,
23
  public_url=public_url, # This fixes the WebSocket URL issue
24
- title="Textual Demo",
25
  )
26
  server.serve()
 
17
  print(f"Using public_url: {public_url}")
18
 
19
  server = Server(
20
+ "python textual-app/dictionary.py",
21
  host="0.0.0.0",
22
  port=7860,
23
  public_url=public_url, # This fixes the WebSocket URL issue
24
+ title="Textual Dictionary App",
25
  )
26
  server.serve()
dictionary.py → textual-app/dictionary.py RENAMED
File without changes
dictionary.tcss → textual-app/dictionary.tcss RENAMED
File without changes