Update Dockerfile
Browse files- Dockerfile +11 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM archlinux:base
|
| 2 |
+
ENV UV_INSTALL_DIR="/usr/local/bin"
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
COPY app.py .
|
| 5 |
+
RUN pacman -Syu --noconfirm && \
|
| 6 |
+
pacman -S --noconfirm curl && \
|
| 7 |
+
pacman -Scc --noconfirm && \
|
| 8 |
+
curl -LsSf https://astral.sh/uv/install.sh | sh && \
|
| 9 |
+
uv init --python 3.14 --no-readme --vcs none . && \
|
| 10 |
+
uv add fastapi "httpx[http2]" uvicorn parsel py_fake_useragent pydantic
|
| 11 |
+
CMD ["uv", "run", "app.py"]
|