Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f40675f3d2 | |||
| b54e6c3e0c |
@@ -23,10 +23,6 @@ RUN wget -O /app/uv-x86_64-unknown-linux-musl.tar.gz https://github.com/astral-s
|
|||||||
chmod +x /usr/local/bin/uv && \
|
chmod +x /usr/local/bin/uv && \
|
||||||
uv --version
|
uv --version
|
||||||
|
|
||||||
# Copy CA bundle from host
|
|
||||||
COPY ca-bundle.pem /app/ca-bundle.pem
|
|
||||||
RUN chmod 644 /app/ca-bundle.pem
|
|
||||||
|
|
||||||
# Create non-root user first
|
# Create non-root user first
|
||||||
RUN adduser -D -s /bin/sh appuser && \
|
RUN adduser -D -s /bin/sh appuser && \
|
||||||
chown -R appuser:appuser /app
|
chown -R appuser:appuser /app
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ format:
|
|||||||
uv run ruff format .
|
uv run ruff format .
|
||||||
|
|
||||||
run:
|
run:
|
||||||
uv venv --python 3.11 && \
|
|
||||||
source .venv/bin/activate && \
|
|
||||||
uv run python -m src.artifactapi.main
|
uv run python -m src.artifactapi.main
|
||||||
|
|
||||||
docker-up:
|
docker-up:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class RedisCache:
|
|||||||
or file_path.endswith("Packages.gz")
|
or file_path.endswith("Packages.gz")
|
||||||
or file_path.endswith("repomd.xml")
|
or file_path.endswith("repomd.xml")
|
||||||
or "repodata/" in file_path
|
or "repodata/" in file_path
|
||||||
and file_path.endswith((".xml", ".xml.gz", ".xml.bz2", ".xml.xz"))
|
and file_path.endswith((".xml", ".xml.gz", ".xml.bz2", ".xml.xz", ".xml.zck", ".xml.zst"))
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_index_cache_key(self, remote_name: str, path: str) -> str:
|
def get_index_cache_key(self, remote_name: str, path: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user