| FROM eceasy/cli-proxy-api:latest |
|
|
| USER root |
|
|
| |
| RUN apk add --no-cache nginx libc6-compat gcompat bash curl |
|
|
| |
| WORKDIR /app |
| RUN cp /CLIProxyAPI/CLIProxyAPI ./cli-proxy-api && chmod +x ./cli-proxy-api |
| RUN mkdir -p /tmp/.cli-proxy-api /tmp/logs /run/nginx && chmod -R 777 /tmp /run/nginx |
|
|
| |
| COPY config.yaml /app/config.yaml |
| COPY nginx.conf /etc/nginx/nginx.conf |
|
|
| |
| ENV TZ=Asia/Shanghai |
| EXPOSE 7860 |
|
|
| |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ |
| CMD curl -f http://127.0.0.1:7860/ || exit 1 |
|
|
| |
| CMD ["sh", "-c", "nginx && ./cli-proxy-api"] |