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