2ch commited on
Commit
fc46101
·
verified ·
1 Parent(s): 8087248

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -5
Dockerfile CHANGED
@@ -1,5 +1,11 @@
1
- FROM python:3.13-alpine
2
- WORKDIR /code
3
- COPY . .
4
- RUN chmod -R 777 /code && pip install --no-cache-dir --upgrade fastapi httpx[http2] uvicorn parsel py_fake_useragent pydantic
5
- CMD ["python", "/code/app.py"]
 
 
 
 
 
 
 
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"]