ohmyapi / Dockerfile
shenhao's picture
Update Dockerfile
a15febc verified
raw
history blame contribute delete
480 Bytes
FROM eceasy/cli-proxy-api:latest
USER root
RUN apk add --no-cache bash libc6-compat gcompat
WORKDIR /app
RUN cp /CLIProxyAPI/CLIProxyAPI ./cli-proxy-api && chmod +x ./cli-proxy-api
RUN mkdir -p /tmp/.cli-proxy-api /tmp/logs /tmp/pg_cache/pgstore && chmod -R 777 /tmp
COPY config.yaml /app/config.yaml
# 修复 config.example.yaml 缺失
RUN cp /app/config.yaml /app/config.example.yaml
ENV TZ=Asia/Shanghai
EXPOSE 7860
CMD ["./cli-proxy-api", "--config", "/app/config.yaml"]