File size: 294 Bytes
8355150
f778831
c873225
f778831
6a7cc58
12a4331
52d1659
 
c873225
 
6a7cc58
c873225
12a4331
 
52d1659
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: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"]