Spaces:
Sleeping
Sleeping
Gallinator commited on
Dockerfile: install app requirements
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -19,11 +19,14 @@ RUN apt-get install libwayland-dev wayland-protocols libxkbcommon-dev libdbus-1-
|
|
| 19 |
# Python dependencies
|
| 20 |
RUN pip install --no-cache-dir torch_geometric
|
| 21 |
RUN pip install --no-cache-dir pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.7.0+cu128.html
|
|
|
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
USER appuser
|
| 25 |
WORKDIR ./app
|
| 26 |
|
|
|
|
| 27 |
ENV OPENFOAM_DIR="/usr/lib/openfoam/openfoam2412"
|
| 28 |
ENV N_PROCS=2
|
|
|
|
| 29 |
CMD [ "fastapi", "run", "server.py"]
|
|
|
|
| 19 |
# Python dependencies
|
| 20 |
RUN pip install --no-cache-dir torch_geometric
|
| 21 |
RUN pip install --no-cache-dir pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.7.0+cu128.html
|
| 22 |
+
RUN pip install --no-cache-dir -r porous_cfd/requirements.txt
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
USER appuser
|
| 26 |
WORKDIR ./app
|
| 27 |
|
| 28 |
+
ENV PYTHONPATH=".:../porous_cfd"
|
| 29 |
ENV OPENFOAM_DIR="/usr/lib/openfoam/openfoam2412"
|
| 30 |
ENV N_PROCS=2
|
| 31 |
+
|
| 32 |
CMD [ "fastapi", "run", "server.py"]
|