Spaces:
Running
Running
File size: 510 Bytes
8355150 f778831 c873225 f778831 8355150 1f26615 6a7cc58 12a4331 c873225 6a7cc58 c873225 6a7cc58 c873225 12a4331 6a7cc58 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM ghcr.io/martialbe/one-api as builder
FROM --platform=$BUILDPLATFORM caddy:2.6.2-alpine AS runner
RUN apk update \
&& apk upgrade \
&& apk add --no-cache ca-certificates tzdata \
&& update-ca-certificates 2>/dev/null || true
COPY --from=builder /one-api /usr/local/bin/one-api
WORKDIR /app
COPY Caddyfile ./Caddyfile
RUN touch /app/caddy.log && chmod 777 -R /app/caddy.log
RUN chmod 777 -R /app
EXPOSE 3001
CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /usr/local/bin/one-api"] |