File size: 624 Bytes
1f03703
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50318d8
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
34
35
FROM pytorch/pytorch:2.3.1-cuda11.8-cudnn8-runtime

# Install dependencies
RUN apt-get update && apt-get install -y \
    git \
    wget \
    unzip \
    vim \
    ffmpeg \
    libsm6 \
    libxext6

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/mapper

RUN pip install --no-cache-dir 	"uvicorn>=0.14.0" 	spaces

COPY --chown=user . $HOME/mapper

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Get Weights
RUN bash get_weights.sh

# Start the app
CMD ["python", "app.py"]