File size: 1,221 Bytes
5fe1015 c4d3834 5fe1015 c4d3834 5fe1015 c4d3834 5fe1015 98fcad2 5fe1015 97a9671 5fe1015 6645f98 5fe1015 6645f98 5fe1015 6645f98 5fe1015 6645f98 5fe1015 6645f98 5fe1015 6645f98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
## Use the official SQLite Web image as the base image
#FROM ghcr.io/coleifer/sqlite-web:latest
## Set environment variables
#ENV STORAGE_DIR="/data/storage"
#ENV SERVER_PORT=7860
#ENV SQLITE_DATABASE="${STORAGE_DIR}/anythingllm.db"
## Expose the server port
#EXPOSE ${SERVER_PORT}
## Set the working directory
#WORKDIR /data
# Create the storage directory and set permissions
#RUN mkdir -p ${STORAGE_DIR} && chmod -R 777 ${STORAGE_DIR}
# Command to run SQLite Web using the correct option for specifying the database file
#CMD sqlite_web --host=0.0.0.0 --port=${SERVER_PORT} ${SQLITE_DATABASE}
FROM mintplexlabs/anythingllm:render
# Switch to root user to perform administrative tasks
USER root
# Create storage directory and link
RUN mkdir -p /data/storage && \
ln -s /data/storage /storage
# Change ownership of the storage directory to the anythingllm user
RUN chown -R anythingllm:anythingllm /data/storage
# Set environment variables for storage and server port
ENV STORAGE_DIR="/data/storage"
ENV SERVER_PORT=7860
# Switch back to the anythingllm user
USER anythingllm
# Set the entry point to run the script and the main application
ENTRYPOINT ["/bin/bash","/usr/local/bin/render-entrypoint.sh"]
|