File size: 285 Bytes
7e1744f f778831 7e1744f f778831 7e1744f 12a4331 7e1744f 52d1659 7e1744f c873225 7e1744f c873225 7e1744f 12a4331 7e1744f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
FROM ghcr.io/martialbe/one-api as builder
FROM --platform=$BUILDPLATFORM caddy:alpine AS runner
WORKDIR /app
COPY --from=builder /one-api ./one-api
COPY Caddyfile ./Caddyfile
RUN chmod 777 -R /app
EXPOSE 3001
CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /app/one-api"] |