Download Dockerfile from f2d90b38/codede: direct link, hf CLI and curl.
- Browser
- Download file 860 Bytes
-
https://huggingface.co/spaces/f2d90b38/codede/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/f2d90b38/codede/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/f2d90b38/codede/resolve/main/Dockerfile
860 Bytes
| FROM eceasy/cli-proxy-api:latest | |
| # Install nginx + envsubst for templating. | |
| RUN if command -v apt-get >/dev/null 2>&1; then \ | |
| apt-get update \ | |
| && apt-get install -y --no-install-recommends nginx gettext-base ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/*; \ | |
| elif command -v apk >/dev/null 2>&1; then \ | |
| apk add --no-cache nginx gettext ca-certificates; \ | |
| else \ | |
| echo "No supported package manager found for nginx install." \ | |
| && exit 1; \ | |
| fi | |
| ENV PORT=7860 | |
| ENV PROXY_PATH=/api | |
| ENV CLI_PROXY_HOST=127.0.0.1 | |
| ENV CLI_PROXY_PORT=8317 | |
| ENV CONFIG_PATH=/data/config.yaml | |
| ENV AUTH_DIR=/data/auth | |
| COPY nginx.conf.template /etc/nginx/templates/default.conf.template | |
| COPY config.yaml /app/config.yaml | |
| COPY public /usr/share/nginx/html | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/start.sh"] | |