im so dumb. fix the docker file
Some checks failed
Build and push / sync-argocd-app (push) Blocked by required conditions
Build and push / changes (push) Successful in 5s
Build and push / Lint-Python (push) Successful in 8s
Build and push / Build-and-Push-Docker (push) Has been cancelled

This commit is contained in:
Luke R 2024-11-10 15:54:55 -08:00
parent d193060cd8
commit 1897f63bd0
3 changed files with 1827 additions and 2 deletions

View File

@ -2,7 +2,7 @@ FROM python:3.10-rc AS build
ADD app/requirements.txt /requirements.txt ADD app/requirements.txt /requirements.txt
ADD https://astral.sh/uv/install.sh /install.sh ADD https://astral.sh/uv/install.sh /install.sh
RUN bash /install.sh && rm /install.sh && chmod +x /root/.local/bin/uv RUN bash /install.sh && rm /install.sh && chmod +x /root/.local/bin/uv
RUN /root/.local/bin pip install --system --no-cache-dir -r requirements.txt RUN /root/.local/bin/uv pip install --system --no-cache-dir -r requirements.txt
FROM python:3.10-rc-slim FROM python:3.10-rc-slim
RUN apt update && \ RUN apt update && \

View File

@ -25,7 +25,7 @@ def allowed_level_roll():
def query_tarkov_api(query): def query_tarkov_api(query):
headers = {"Content-Type": "application/json", "Cache-Control": "no-cache"} headers = {"Content-Type": "application/json"}
return requests.post( return requests.post(
"https://api.tarkov.dev/graphql", headers=headers, json={"query": query} "https://api.tarkov.dev/graphql", headers=headers, json={"query": query}
).json()["data"] ).json()["data"]

1825
install.sh Normal file

File diff suppressed because it is too large Load Diff