Commit
Β·
83e5626
1
Parent(s):
4aab7ea
add creation of dir
Browse files- Dockerfile +3 -0
- app.py +0 -3
Dockerfile
CHANGED
@@ -19,6 +19,9 @@ COPY src/ ./src/
|
|
19 |
# Make setup.sh executable and run it
|
20 |
RUN chmod +x setup.sh && ./setup.sh
|
21 |
|
|
|
|
|
|
|
22 |
# Install Python dependencies
|
23 |
RUN pip install --no-cache-dir -r requirements.txt
|
24 |
|
|
|
19 |
# Make setup.sh executable and run it
|
20 |
RUN chmod +x setup.sh && ./setup.sh
|
21 |
|
22 |
+
# make the files
|
23 |
+
RUN mkdir -p /app/temp_submissions_app && chmod 777 /app/temp_submissions_app
|
24 |
+
|
25 |
# Install Python dependencies
|
26 |
RUN pip install --no-cache-dir -r requirements.txt
|
27 |
|
app.py
CHANGED
@@ -1,11 +1,8 @@
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
|
4 |
-
from src.config import LOCAL_TEMP_SUBMISSIONS_DIR
|
5 |
from src.ui import create_ui
|
6 |
|
7 |
-
os.makedirs(LOCAL_TEMP_SUBMISSIONS_DIR, exist_ok=True)
|
8 |
-
|
9 |
try:
|
10 |
version = subprocess.check_output(["minizinc", "--version"], text=True, stderr=subprocess.STDOUT)
|
11 |
print(f"π§ MiniZinc version (from Docker env): {version.strip()}")
|
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
|
|
|
4 |
from src.ui import create_ui
|
5 |
|
|
|
|
|
6 |
try:
|
7 |
version = subprocess.check_output(["minizinc", "--version"], text=True, stderr=subprocess.STDOUT)
|
8 |
print(f"π§ MiniZinc version (from Docker env): {version.strip()}")
|