Spaces:
Runtime error
Runtime error
huggingface112
commited on
Commit
•
de64de6
1
Parent(s):
bd05e46
update for deployment
Browse files- Dockerfile +11 -6
- instance/local.db +2 -2
Dockerfile
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
FROM python:3.11
|
2 |
|
3 |
WORKDIR /code
|
@@ -8,12 +9,16 @@ RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
8 |
|
9 |
COPY . /code
|
10 |
|
11 |
-
#
|
12 |
-
EXPOSE 7860
|
13 |
-
|
14 |
-
# Set up a directory for the persistent volume
|
15 |
VOLUME /code/instance
|
16 |
|
17 |
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# for local deployment
|
2 |
FROM python:3.11
|
3 |
|
4 |
WORKDIR /code
|
|
|
9 |
|
10 |
COPY . /code
|
11 |
|
12 |
+
# Create a directory to hold the volume content
|
|
|
|
|
|
|
13 |
VOLUME /code/instance
|
14 |
|
15 |
|
16 |
+
CMD ["panel", "serve", "portfolioEditingPage.py", "index_page.py","--setup","backgroundTask.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "lamonkey-portfolio-management.hf.space"]
|
17 |
+
|
18 |
+
# permission required by huggingface
|
19 |
+
RUN mkdir /.cache
|
20 |
+
RUN chmod 777 /.cache
|
21 |
+
RUN mkdir .chroma
|
22 |
+
RUN chmod 777 .chroma
|
23 |
+
|
24 |
+
|
instance/local.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cae76d661dfb2556bf73c8ea6580b5e14bcac76076d843456d65281399b604f4
|
3 |
+
size 291463168
|