Spaces:
Running
Running
FROM ghcr.io/martialbe/one-api as builder | |
FROM --platform=$BUILDPLATFORM caddy:2.6.2-alpine AS runner | |
WORKDIR /app | |
COPY --from=builder /one-api /app/one-api | |
COPY Caddyfile ./Caddyfile | |
RUN chmod 777 -R /app | |
EXPOSE 3001 | |
CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /app/one-api"] |