NandyG commited on
Commit
f7dd02f
·
1 Parent(s): af8bbe6

updated start issue

Browse files
Files changed (2) hide show
  1. .dockerignore +50 -0
  2. Dockerfile +5 -2
.dockerignore ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Compiled Python files
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+
6
+ # Python cache
7
+ __pycache__
8
+
9
+ # Python environment
10
+ .Python
11
+ .env*
12
+
13
+ # Pipenv
14
+ pip-log.txt
15
+ pip-delete-this-directory.txt
16
+
17
+ # Tox
18
+ .tox
19
+
20
+ # Coverage
21
+ .coverage
22
+ .coverage.*
23
+
24
+ # Cache and temporary files
25
+ .cache
26
+
27
+ # Nose testing tool
28
+ nosetests.xml
29
+
30
+ # Coverage reports
31
+ coverage.xml
32
+ *,cover
33
+
34
+ # Log files
35
+ *.log
36
+
37
+ # Git
38
+ .git*
39
+
40
+ # Unit test files
41
+ tests
42
+
43
+ # Scripts
44
+ scripts
45
+
46
+ # PostgreSQL data directory
47
+ ./postgres-data
48
+
49
+ # MyPy cache
50
+ .mypy_cache
Dockerfile CHANGED
@@ -15,13 +15,16 @@ ENV POETRY_NO_INTERACTION=1 \
15
  # Set the working directory inside the container
16
  WORKDIR /app
17
 
18
- COPY . .
 
 
 
19
 
20
  # Install project dependencies using Poetry
21
  RUN poetry install --without dev
22
 
23
  # Define the default command to run the application
24
- CMD ["chainlit", "run", "app.py", "--port", "7860"]
25
 
26
  # Expose port 7860 for external access
27
  EXPOSE 7860
 
15
  # Set the working directory inside the container
16
  WORKDIR /app
17
 
18
+ COPY pyproject.toml poetry.lock ./
19
+ COPY chainlit.md app.py prompts.py ./
20
+ COPY .chainlit ./
21
+ COPY .chainlit/config.toml .chainlit/config.toml
22
 
23
  # Install project dependencies using Poetry
24
  RUN poetry install --without dev
25
 
26
  # Define the default command to run the application
27
+ CMD ["poetry", "run", "chainlit", "run", "app.py", "--port", "7860"]
28
 
29
  # Expose port 7860 for external access
30
  EXPOSE 7860