File size: 737 Bytes
54e6841
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316adf7
54e6841
 
 
316adf7
 
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
FROM --platform=linux/amd64 python:3.10

WORKDIR /code

# Install base utilities
RUN apt-get update \
    && apt-get install -y build-essential \
    && apt-get install -y wget \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Install miniconda
ENV CONDA_DIR /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
    /bin/bash ~/miniconda.sh -b -p /opt/conda

# Put conda in path so we can use conda activate
ENV PATH=$CONDA_DIR/bin:$PATH

COPY ./environment.yml /code/environment.yml
RUN conda env create --file /code/environment.yml

COPY . .

CMD ["python", "server.gradio_web_server"]
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]