creating data, assests/data in dockerfile
Browse files- Dockerfile +2 -0
- app/main_reflex.py +0 -3
Dockerfile
CHANGED
@@ -10,6 +10,8 @@ ENV ENVIRONMENT=dev
|
|
10 |
COPY ./app /app
|
11 |
COPY requirements.txt .
|
12 |
WORKDIR .
|
|
|
|
|
13 |
|
14 |
RUN apt-get update && apt-get install -y \
|
15 |
unzip \
|
|
|
10 |
COPY ./app /app
|
11 |
COPY requirements.txt .
|
12 |
WORKDIR .
|
13 |
+
RUN mkdir -p data
|
14 |
+
RUN mkdir -p assets/data
|
15 |
|
16 |
RUN apt-get update && apt-get install -y \
|
17 |
unzip \
|
app/main_reflex.py
CHANGED
@@ -30,9 +30,6 @@ from app.engine.logger import logger
|
|
30 |
|
31 |
from app.settings import datadir, datadir2
|
32 |
|
33 |
-
os.makedirs(datadir, exist_ok=True)
|
34 |
-
os.makedirs(datadir2, exist_ok=True)
|
35 |
-
|
36 |
EXTENSIONS = ["pdf", "txt"]
|
37 |
|
38 |
app = FastAPI()
|
|
|
30 |
|
31 |
from app.settings import datadir, datadir2
|
32 |
|
|
|
|
|
|
|
33 |
EXTENSIONS = ["pdf", "txt"]
|
34 |
|
35 |
app = FastAPI()
|