File size: 656 Bytes
3fab691
b07cceb
16a1040
3fab691
 
01af194
 
 
 
 
 
 
 
 
 
 
 
16a1040
 
 
 
 
 
 
cf64181
16a1040
 
d34440f
16a1040
01af194
 
16a1040
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM julia:1.10.0 AS jl
FROM python:3.12

COPY --from=jl /usr/local/julia /usr/local/julia
ENV PATH="/usr/local/julia/bin:${PATH}"

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        build-essential \
        git \
        libgl1-mesa-glx \
        libglib2.0-0 \
        libpython3-dev \
        && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

# Install Python dependencies:
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Install Julia dependencies
RUN python -c "import pysr"

COPY . .

EXPOSE 7860

CMD ["python", "app.py"]