im so dumb. fix the docker file
This commit is contained in:
parent
d193060cd8
commit
1897f63bd0
@ -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 && \
|
||||||
|
@ -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
1825
install.sh
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user