Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/astral-sh/uv:python3.13-alpine
|
| 2 |
+
|
| 3 |
+
ENV PYTHONUNBUFFERED=1 \
|
| 4 |
+
UV_COMPILE_BYTECODE=1 \
|
| 5 |
+
UV_LINK_MODE=copy \
|
| 6 |
+
PATH="/app/.venv/bin:/root/.local/bin:$PATH"
|
| 7 |
+
|
| 8 |
+
RUN apk add --no-cache bash git
|
| 9 |
+
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
RUN git clone --depth=1 --recursive https://github.com/aahl/qwen-asr2api.git .
|
| 12 |
+
|
| 13 |
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
| 14 |
+
uv sync --locked --no-dev
|
| 15 |
+
|
| 16 |
+
CMD qwen3asr2api
|
| 17 |
+
HEALTHCHECK --interval=1m --start-period=10s CMD nc -zn 0.0.0.0 80 || exit 1
|