|
|
|
FROM ghcr.io/yufeikang/raycast_api_proxy:main AS builder |
|
|
|
|
|
FROM FROM --platform=$BUILDPLATFORM caddy:alpine AS runner |
|
|
|
RUN apk add --no-cache python3 py3-pip |
|
|
|
WORKDIR /project |
|
|
|
|
|
ENV PYTHONPATH=/project/pkgs |
|
|
|
RUN chmod 777 -R /project |
|
RUN mkdir -p ./sync && chmod 777 -R ./sync |
|
|
|
COPY --from=builder /project/pkgs /project/pkgs |
|
COPY --from=builder /project/app /project/app |
|
COPY Caddyfile ./Caddyfile |
|
|
|
EXPOSE 3000 |
|
|
|
CMD ["sh", "-c", "caddy run --config /app/Caddyfile & python -m uvicorn app.main:app --host 0.0.0.0 --port 80"] |