We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5db7f5 commit 2db766fCopy full SHA for 2db766f
Dockerfile
@@ -1,5 +1,12 @@
1
-FROM python:3.9
+FROM python:3.9-alpine as builder
2
+RUN apk update && apk add gcc musl-dev linux-headers
3
COPY . /app
4
WORKDIR /app
5
RUN pip install -r requirements.txt
-ENTRYPOINT ["python","/app/main.py"]
6
+RUN pip install pyinstaller
7
+RUN pyinstaller -F main.py -n chaoxing
8
+
9
+FROM alpine
10
+COPY --from=builder /app/dist /app
11
+WORKDIR /app
12
+CMD ["./chaoxing"]
0 commit comments