Spaces:
Runtime error
Runtime error
nbintang commited on
Commit ·
b704efb
1
Parent(s): ec6d699
fix: Dockerfile
Browse files- Dockerfile +1 -4
- pyproject.toml +3 -6
Dockerfile
CHANGED
|
@@ -11,10 +11,7 @@ COPY requirements.txt .
|
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 12 |
&& pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
COPY .
|
| 15 |
-
COPY ./models ./models
|
| 16 |
-
COPY ./aerich.ini ./aerich.ini
|
| 17 |
-
COPY ./migrations ./migrations
|
| 18 |
|
| 19 |
EXPOSE 7860
|
| 20 |
|
|
|
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 12 |
&& pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
COPY . .
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
EXPOSE 7860
|
| 17 |
|
pyproject.toml
CHANGED
|
@@ -1,7 +1,4 @@
|
|
| 1 |
-
[tool.aerich]
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
location = "./migrations"
|
| 6 |
-
|
| 7 |
src_folder = "./."
|
|
|
|
| 1 |
+
[tool.aerich]
|
| 2 |
+
tortoise_orm = "app.config.db_config.tortoise_config.TORTOISE_ORM"
|
| 3 |
+
location = "./migrations"
|
|
|
|
|
|
|
|
|
|
| 4 |
src_folder = "./."
|