JPBianchi commited on
Commit
09b3b7b
1 Parent(s): 0c25239

added loading a few basic apps in dockerfil

Browse files
Files changed (2) hide show
  1. Dockerfile +9 -0
  2. app/main_reflex.py +1 -6
Dockerfile CHANGED
@@ -11,6 +11,15 @@ COPY ./app /app
11
  COPY requirements.txt .
12
  WORKDIR .
13
 
 
 
 
 
 
 
 
 
 
14
  RUN pip install --no-cache-dir --upgrade -r app/requirements.txt
15
  # ^ no caching of the packages to save space
16
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
11
  COPY requirements.txt .
12
  WORKDIR .
13
 
14
+ RUN apt-get update && apt-get install -y \
15
+ unzip \
16
+ curl \
17
+ wget \
18
+ git git-lfs \
19
+ bash
20
+ && rm -rf /var/lib/apt/lists/*
21
+ # reflex needs unzip curl
22
+
23
  RUN pip install --no-cache-dir --upgrade -r app/requirements.txt
24
  # ^ no caching of the packages to save space
25
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
app/main_reflex.py CHANGED
@@ -30,13 +30,8 @@ from app.engine.logger import logger
30
 
31
  from app.settings import datadir, datadir2
32
 
33
- if not os.path.exists(datadir):
34
- os.makedirs(datadir, exist_ok=True)
35
-
36
- if not os.path.exists(datadir2):
37
- os.makedirs(datadir2, exist_ok=True)
38
-
39
  os.makedirs(datadir, exist_ok=True)
 
40
 
41
  EXTENSIONS = ["pdf", "txt"]
42
 
 
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