-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 758 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (27 loc) · 758 Bytes
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 python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libxcb1 \
libx11-6 \
libxkbcommon0 \
libgtk-3-0 \
tk \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir torch==2.4.1 torchvision==0.19.1 \
--index-url https://download.pytorch.org/whl/cpu \
&& pip install --no-cache-dir -r requirements.txt
COPY scripts/ scripts/
COPY algorithm/ algorithm/
COPY ui/ ui/
RUN mkdir -p models results
ENTRYPOINT ["scripts/entrypoint.sh"]
CMD ["python", "ui/app.py"]