newapi / Dockerfile
smgc's picture
Update Dockerfile
52d1659 verified
raw
history blame
No virus
294 Bytes
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"]