-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (28 loc) · 875 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (28 loc) · 875 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
36
37
38
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
libvulkan1 \
mesa-vulkan-drivers \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY alembic.ini ./
COPY VERSION ./
COPY alembic ./alembic
COPY app ./app
COPY docker ./docker-assets
RUN set -eux; \
if [ -f /app/docker-assets/realesrgan-ncnn-vulkan ]; then \
install -m 0755 /app/docker-assets/realesrgan-ncnn-vulkan /usr/local/bin/realesrgan-ncnn-vulkan; \
fi
ENV UPSCALER_COMMAND=/usr/local/bin/realesrgan-ncnn-vulkan
RUN mkdir -p /app/data
EXPOSE 7003
CMD ["bash", "-c", "alembic upgrade head && python -m app.main"]