huggingface112 commited on
Commit
61dcaa7
1 Parent(s): bc13daa

add notification to editing page

Browse files
Files changed (3) hide show
  1. Dockerfile +5 -9
  2. Dockerfile_cloud +23 -0
  3. instance/local.db +2 -2
Dockerfile CHANGED
@@ -8,16 +8,12 @@ RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY . /code
10
 
11
- # Create a directory to hold the volume content
 
12
 
 
13
  VOLUME /code/instance
14
 
15
 
16
- CMD ["panel", "serve", "/code/portfolioEditingPage.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "lamonkey-portfolio-management.hf.space"]
17
- # CMD ["panel", "serve", "/code/portfolioEditingPage.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
18
- RUN mkdir /.cache
19
- RUN chmod 777 /.cache
20
- RUN mkdir .chroma
21
- RUN chmod 777 .chroma
22
-
23
-
 
8
 
9
  COPY . /code
10
 
11
+ # Expose the port your Panel app will run on
12
+ EXPOSE 7860
13
 
14
+ # Set up a directory for the persistent volume
15
  VOLUME /code/instance
16
 
17
 
18
+ # Start the Panel app
19
+ CMD ["panel", "serve", "portfolioEditingPage.py", "--address", "0.0.0.0", "--port", "80", "--allow-websocket-origin", "localhost"]
 
 
 
 
 
 
Dockerfile_cloud ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ RUN python3 -m pip install --no-cache-dir --upgrade pip
7
+ RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ COPY . /code
10
+
11
+ # Create a directory to hold the volume content
12
+
13
+ VOLUME /code/instance
14
+
15
+
16
+ CMD ["panel", "serve", "/code/portfolioEditingPage.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "lamonkey-portfolio-management.hf.space"]
17
+ # CMD ["panel", "serve", "/code/portfolioEditingPage.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
18
+ RUN mkdir /.cache
19
+ RUN chmod 777 /.cache
20
+ RUN mkdir .chroma
21
+ RUN chmod 777 .chroma
22
+
23
+
instance/local.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77911978f609eea6d1dc9285228549b79a1f05a040207d28af2abb4fe7a37063
3
- size 261677056
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6314c2b054acda056fa33ed5a2e0c76dfeb8e8266d3f5011c0d05e182190b96
3
+ size 263163904