Spaces:
Running
Running
Copy from julia base container instead
Browse files- gui/Dockerfile +3 -5
gui/Dockerfile
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
RUN apt-get update && \
|
| 7 |
apt-get install -y --no-install-recommends \
|
|
@@ -21,9 +22,6 @@ COPY ./requirements.txt /code/requirements.txt
|
|
| 21 |
# Install Python dependencies:
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 23 |
|
| 24 |
-
# Install Julia:
|
| 25 |
-
RUN curl -fsSL https://install.julialang.org | sh -s -- -y --default-channel=1.10.0
|
| 26 |
-
ENV PYTHON_JULIACALL_BINDIR="/root/.julia/bin"
|
| 27 |
# Install Julia dependencies
|
| 28 |
RUN python -c "import pysr"
|
| 29 |
|
|
|
|
| 1 |
+
FROM julia:1.10.0 AS jl
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
+
COPY --from=jl /usr/local/julia /usr/local/julia
|
| 5 |
+
ENV PATH="/usr/local/julia/bin:${PATH}"
|
| 6 |
|
| 7 |
RUN apt-get update && \
|
| 8 |
apt-get install -y --no-install-recommends \
|
|
|
|
| 22 |
# Install Python dependencies:
|
| 23 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
# Install Julia dependencies
|
| 26 |
RUN python -c "import pysr"
|
| 27 |
|