File size: 1,045 Bytes
5fe1015
 
c4d3834
5fe1015
 
 
 
c4d3834
5fe1015
 
c4d3834
5fe1015
 
98fcad2
5fe1015
97a9671
5fe1015
 
 
 
 
 
 
 
 
 
 
 
 
68a431f
5fe1015
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
## 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
USER root
# Create storage directory and link
RUN mkdir -p /data/storage
RUN ln -s /data/storage /storage
# Switch to user for AnythingLLM
USER anythingllm
# Set environment variables for storage and server port
ENV STORAGE_DIR="/data/storage"
ENV SERVER_PORT=7860
USER anythingllm
#Set the entry point to run the script and the main application
ENTRYPOINT ["/bin/bash","/usr/local/bin/render-entrypoint.sh"]