We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b3db01 commit 3e3c398Copy full SHA for 3e3c398
Dockerfile
@@ -1,14 +1,17 @@
1
# syntax=docker/dockerfile:1
2
3
-FROM python:3.10-alpine
4
-
+FROM python:3.11-alpine AS builder
5
LABEL org.opencontainers.image.authors="[email protected]"
6
7
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
8
RUN apk update
9
RUN apk add git
10
+WORKDIR /app
11
RUN git clone https://github.com/WangYihang/GitHacker.git
12
-RUN cd GitHacker && pip install -r requirements.txt && python setup.py install
+RUN cd GitHacker && pip install -r requirements.txt && python setup.py sdist bdist_wheel
+
+FROM python:3.11-alpine
13
+COPY --from=builder /app/GitHacker/dist/ /app/
14
+RUN pip install /app/*.whl
15
+ENV GIT_PYTHON_REFRESH=quiet
16
17
ENTRYPOINT ["githacker"]
0 commit comments