File size: 457 Bytes
8355150
f778831
c873225
f778831
 
 
 
 
 
8355150
1f26615
 
12a4331
c873225
 
1f26615
c873225
12a4331
 
1e072c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 /data

COPY Caddyfile ./Caddyfile

RUN chmod 777 -R /data

EXPOSE 3001

CMD ["sh", "-c", "caddy run --config /data/Caddyfile & /usr/local/bin/one-api"]