Kaballas commited on
Commit
a6e12a3
·
verified ·
1 Parent(s): 7b6f40f

Create export

Browse files
Files changed (1) hide show
  1. export +19 -0
export ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official SQLite Web image as the base image
2
+ FROM ghcr.io/coleifer/sqlite-web:latest
3
+
4
+ # Set environment variables
5
+ ENV STORAGE_DIR="/data/storage"
6
+ ENV SERVER_PORT=7860
7
+ ENV SQLITE_DATABASE="${STORAGE_DIR}/db_filename.db"
8
+
9
+ # Expose the server port
10
+ EXPOSE ${SERVER_PORT}
11
+
12
+ # Set the working directory
13
+ WORKDIR /data
14
+
15
+ # Create the storage directory and set permissions
16
+ RUN mkdir -p ${STORAGE_DIR} && chmod -R 777 ${STORAGE_DIR}
17
+
18
+ # Command to run SQLite Web
19
+ CMD ["sqlite_web", "--host=0.0.0.0", "--port=${SERVER_PORT}", "--database=${SQLITE_DATABASE}"]