File size: 955 Bytes
6567947 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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 |