Download Dockerfile from TypeGPT/share: direct link, hf CLI and curl.
- Browser
- Download file 955 Bytes
-
https://huggingface.co/spaces/TypeGPT/share/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TypeGPT/share/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TypeGPT/share/resolve/main/Dockerfile
955 Bytes
| FROM xyhelper/cockroachai:latest | |
| RUN mkdir -p /app/config && chmod 777 /app/config | |
| RUN mkdir -p /app/resource/template && chmod 777 /app/resource/template | |
| ENV OAUTH_URL="http://127.0.0.1:9000/oauth" | |
| # Create the /config directory and write the configuration to the config.yaml file | |
| RUN mkdir -p /app/config && \ | |
| echo "cool:" > /app/config/config.yaml && \ | |
| echo " autoMigrate: true" >> /app/config/config.yaml && \ | |
| echo "database:" >> /app/config/config.yaml && \ | |
| echo " default:" >> /app/config/config.yaml && \ | |
| echo " type: \"sqlite\"" >> /app/config/config.yaml && \ | |
| echo " name: \"./config/cool.sqlite\"" >> /app/config/config.yaml && \ | |
| echo " extra: busy_timeout=5000" >> /app/config/config.yaml && \ | |
| echo " createdAt: \"create_time\"" >> /app/config/config.yaml && \ | |
| echo " updatedAt: \"update_time\"" >> /app/config/config.yaml | |
| # Set file permissions to 777 | |
| RUN chmod 777 /app/config/config.yaml |