|
|
|
FROM python:3.10 AS builder |
|
|
|
|
|
RUN pip install -U pip setuptools wheel |
|
RUN pip install pdm |
|
|
|
|
|
WORKDIR /project |
|
RUN git clone https://github.com/yufeikang/raycast_api_proxy.git . |
|
RUN mkdir __pypackages__ && pdm install --prod --no-lock --no-editable |
|
|
|
|
|
FROM python:3.10-slim |
|
|
|
WORKDIR /project |
|
|
|
|
|
ENV PYTHONPATH=/project/pkgs |
|
|
|
RUN chmod 777 -R /project |
|
RUN mkdir -p ./sync && chmod 777 -R ./sync |
|
|
|
COPY --from=builder /project/__pypackages__/3.10/lib /project/pkgs |
|
COPY --from=builder /project/app /project/app |
|
COPY entrypoint.sh / |
|
|
|
EXPOSE 3000 |
|
|
|
|
|
ENTRYPOINT sh /entrypoint.sh |