FROM python:3.12 as base LABEL email="liuyuqi" # ENV key=value WORKDIR /app ADD . ./app RUN pip install -r requirements.txt FROM base as builder RUN pip install pyinstaller RUN pyinstaller -F -c demo.py FROM base as runner COPY --from=builder . /app/ WORKDIR /app # EXPOSE 8080 # ENTRYPOINT [ "executable" ] # VOLUME [ "/data" ] # CMD [ "/bin/bash" ] CMD [ "python","main.py" ]