Skip to content

Commit a3e86f1

Browse files
authored
Refactor Docker setup and update contact link support 项目瘦身 删除没有在使用的模板文件 (#404)
2 parents 044ad0d + 9717f05 commit a3e86f1

818 files changed

Lines changed: 480 additions & 347 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,23 @@ ENV HTTP_PROXY=${HTTP_PROXY}
1717
ENV HTTPS_PROXY=${HTTPS_PROXY}
1818
ENV no_proxy=${NO_PROXY}
1919
ENV NO_PROXY=${NO_PROXY}
20-
ENV PATH=/app/AzurPilot/.venv/bin:${PATH}
2120

2221
WORKDIR /app/AzurPilot
2322

2423
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
25-
COPY pyproject.toml uv.lock ./
26-
27-
RUN if [ -n "$HTTP_PROXY" ]; then \
28-
printf 'Acquire::http::Proxy "%s";\nAcquire::https::Proxy "%s";\n' "$HTTP_PROXY" "$HTTPS_PROXY" > /etc/apt/apt.conf.d/99proxy; \
29-
fi
3024

3125
RUN apt-get update && \
3226
apt-get install -y --no-install-recommends \
27+
ca-certificates \
3328
git \
34-
adb \
29+
openssh-client \
3530
libgomp1 \
3631
libgl1 \
3732
libglib2.0-0 \
38-
openssh-client && \
33+
libxcb1 && \
3934
apt-get clean && \
4035
rm -rf /var/lib/apt/lists/*
4136

42-
RUN git config --global --add safe.directory '*' && \
43-
if [ -n "$HTTP_PROXY" ]; then \
44-
git config --global http.proxy "$HTTP_PROXY" && \
45-
git config --global https.proxy "$HTTPS_PROXY"; \
46-
fi
47-
48-
RUN uv venv --relocatable --python /usr/local/bin/python .venv && \
49-
uv sync --frozen --no-dev --no-install-project && \
50-
cp /usr/local/bin/uv .venv/bin/uv && \
51-
cp /usr/bin/adb .venv/bin/adb && \
52-
cp /usr/bin/git .venv/bin/git && \
53-
rm -rf /root/.cache/uv
54-
55-
COPY . .
37+
RUN git config --system --add safe.directory /app/AzurPilot
5638

57-
CMD [".venv/bin/python", "gui.py"]
39+
CMD ["uv", "run", "python", "gui.py"]

README.md

Lines changed: 7 additions & 1 deletion
-10.9 KB
Binary file not shown.
-12.2 KB
Binary file not shown.
-10.2 KB
Binary file not shown.
-11.5 KB
Binary file not shown.
-7.61 KB
Binary file not shown.
-5.59 KB
Binary file not shown.
-7.67 KB
Binary file not shown.
-9.82 KB
Binary file not shown.

0 commit comments

Comments
 (0)