Spaces:
Build error
Build error
:pencil: [Config] Enable cache in docker, and monitor more files in actions
Browse files- .github/workflows/sync_to_hf_space.yml +2 -0
- Dockerfile +2 -2
.github/workflows/sync_to_hf_space.yml
CHANGED
@@ -3,6 +3,8 @@ on:
|
|
3 |
push:
|
4 |
paths:
|
5 |
- "configs/config.json"
|
|
|
|
|
6 |
workflow_dispatch:
|
7 |
|
8 |
jobs:
|
|
|
3 |
push:
|
4 |
paths:
|
5 |
- "configs/config.json"
|
6 |
+
- "./Dockerfile"
|
7 |
+
- ".github/workflows/sync_to_hf_space.yml"
|
8 |
workflow_dispatch:
|
9 |
|
10 |
jobs:
|
Dockerfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
FROM python:3.11-slim
|
2 |
WORKDIR $HOME/app
|
3 |
-
COPY .
|
4 |
RUN mkdir /.cache && chmod 777 /.cache
|
5 |
RUN pip install -r requirements.txt
|
6 |
-
|
7 |
EXPOSE 23333
|
8 |
CMD ["python", "-m", "apis.chat_api"]
|
|
|
1 |
FROM python:3.11-slim
|
2 |
WORKDIR $HOME/app
|
3 |
+
COPY requirements.txt $HOME/app
|
4 |
RUN mkdir /.cache && chmod 777 /.cache
|
5 |
RUN pip install -r requirements.txt
|
6 |
+
COPY . $HOME/app
|
7 |
EXPOSE 23333
|
8 |
CMD ["python", "-m", "apis.chat_api"]
|